jaywcjlove / hotkeys-js

➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
https://jaywcjlove.github.io/hotkeys-js
MIT License
6.66k stars 410 forks source link

In mac , command + arrow shortcut keyup handler is not getting called #375

Open nishalgoud opened 2 years ago

nishalgoud commented 2 years ago

i am using https://www.npmjs.com/package/react-hotkeys-hook hook to call the callback handler when the keyup of command+arrow keys shortcut is called

seems in IOS handler is not getting called when key up of comman+ arrow keys

nishalgoud commented 2 years ago

for keyup i have registered like this

useHotkeys(`command+right`, handler, {  keyup: true,
        keydown: false,} );
nishalgoud commented 2 years ago

Also i have observed for any key combination , during keyup ,the handler is not getting triggered in Mac IOS

amatiash commented 2 years ago

I have the same issue. On MacOS is not fired: hotkeys('ctrl,command', {keyup: true})

liu-xinhui commented 2 years ago
hotkeys("ctrl+down", function(event) {
    console.log(event);
    return false;
  });
  hotkeys("ctrl+right", function(event) {
    console.log(event);
    return false;
  });

ctrl+down can trigger, but ctrl+right not work