chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 248 forks source link

2+ key combo support #218

Open jlocans opened 8 years ago

jlocans commented 8 years ago

It isn't mentioned anywhere that more than two key combos are not supported. If I assign 'alt+s+c' then s is ignored.

seeekr commented 8 years ago

Check Mousetrap for supported keybinds:

https://craig.is/killing/mice

Your example does not really make sense. Noone is actually pressing two non-modifier keys at the same time, that's not something that is usually done. And as such it's unsurprising that it is not supported by Mousetrap / this library.

Two or more modifier keys, on the other hand, is supported. E.g. ctrl+shift+e.

And what's also supported are multiple non-modifier keys triggered in succession, like the famous 'g i' from Google Mail (go to inbox).

mrsweaters commented 6 years ago

I know this is pretty late, but you can do this with combo: 'alt+s alt+c'