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

Mac only some global shortcuts working #4456

Closed
vibber opened this issue Feb 25, 2016 · 2 comments
Closed

Mac only some global shortcuts working #4456

vibber opened this issue Feb 25, 2016 · 2 comments

Comments

@vibber
Copy link

vibber commented Feb 25, 2016

I am having problems registering global shortcuts on Mac 10.10.5 nwjs build v0.12.3
Only the cmd+L one is working for me - and it logs incorrectly that it is a Ctrl+L keypress

test global shortcuts.zip

@vibber
Copy link
Author

vibber commented Feb 25, 2016

PS: Is there a native way of providing app-wide shortcuts? Or should I use a javascript way such as Mousetrap?

@ghostoy
Copy link
Member

ghostoy commented Feb 26, 2016

In 0.12.3, cmd is same as ctrl on Mac. In latest 0.13.0, cmd is a separate key.

nw.Shortcut API registers shortcuts globally. You have to use key events to handle app level shortcuts.

@vibber vibber closed this as completed Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants