Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcuts don't trigger active. #3583

Closed
jaredallard opened this issue Jun 14, 2015 · 6 comments
Closed

Shortcuts don't trigger active. #3583

jaredallard opened this issue Jun 14, 2015 · 6 comments
Labels

Comments

@jaredallard
Copy link

I'm registering as such:

  /* register key events */
  var gui = require('nw.gui');

  var option = {
    key : "Ctrl+T"
  };

  // Create a shortcut with |option|.
  var shortcut = new gui.Shortcut(option);

  shortcut.on('active', function(e) {
    console.log("Global desktop keyboard shortcut: active.");
  });

  // Register global desktop shortcut, which can work without focus.
  gui.App.registerGlobalHotKey(shortcut);

When Ctrl+T is pressed, nothing happens. If I change the key to "T" the input is intercepted, but nothing happens.

nw: 0.12.2
platform: linux
arch: x64

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@jakejarrett
Copy link

Can confirm, Linux shortcuts aren't behaving correctly on 0.12.2, 0.10.4 works fine.

@petre2dor
Copy link

similar problems here on ubuntu 15.04 and 14.04

@jaredallard
Copy link
Author

Anything, @rogerwang?

@floriangosse
Copy link

Same problems on Fedora 22

@Christywl
Copy link
Contributor

I can't reproduce this issue on Linux with nwjs-sdk-v0.22.3. When press 'Ctrl + T', 'active' event is triggered, and the console log is displayed.

@Christywl
Copy link
Contributor

close until there is more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants