hotkeys-js icon indicating copy to clipboard operation
hotkeys-js copied to clipboard

Hotkey '+' and 'ctrl-+' not working

Open TheSteff5 opened this issue 3 years ago • 1 comments

I am developing an angular app. I was testing my feature and noticed that the application is not reacting to the hotkeys '+' and 'ctrl-+'. According to the documentation it is necessary to define a different splitKey if you want to use the key '+' as a shortcut, but its not working. Is this a bug? For 'a' and 'ctrl-a' it is working. hotkeys('+,ctrl-+,a,ctrl-a', { splitKey: '-' }, function (event, handler) { event.preventDefault(); alert(event); });

In the documentation it says image

TheSteff5 avatar Aug 25 '22 08:08 TheSteff5

if you still having problems, I was running into the same issue. But realised that the key is '=' not +.

IE your code should be ctrl+= or = these work for me

JeremyGeros avatar Mar 10 '23 15:03 JeremyGeros