nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.39k stars 3.88k forks source link

Shortcut with Command key work uncorrectly #7463

Open Virius opened 4 years ago

Virius commented 4 years ago

NWJS Version : 0.44.6, 0.45.4 Operating System : Windows 10

Expected behavior

hot key must work

Actual behavior

hot key does not work without errors or with error "Unable to register the hotkey" on register step

How to reproduce

  1. run nw.exe and show console
  2. enter commands: var opts = { key: 'Command+Alt+`', active: () => console.log('active'), failed: console.error }; var sc = new nw.Shortcut(opts); nw.App.registerGlobalHotKey(sc);
  3. in console will be message "Error: Unable to register the hotkey" and hot key does not work

another steps (another hot key):

  1. run nw.exe and show console
  2. enter commands: var opts = { key: 'Command+`', active: () => console.log('active'), failed: console.error }; var sc = new nw.Shortcut(opts); nw.App.registerGlobalHotKey(sc);
  3. Last command executed without errors but hot key does not work.
t-mish commented 3 years ago

Same on version 0.50.0

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.