dmauro / Keypress

A keyboard input capturing utility in which any key can be a modifier key.
http://dmauro.github.io/Keypress/
Apache License 2.0
3.18k stars 313 forks source link

if i press cmd first, other meta keys can not be captured. #12

Closed zhuangya closed 4 years ago

zhuangya commented 11 years ago

say, if i press in this order: ctrl + option + cmd it would work fine.

but if i press in this order: cmd + ctrl + option (or other combination, only if i press cmd first) it would not work

dmauro commented 11 years ago

What browser/OS is this?

zhuangya commented 11 years ago

OS: Mac OS X 10.8.5 Browsers:

ajsharp commented 11 years ago

+1 seeing the same thing

veenified commented 11 years ago

I am also seeing this: Mac OS X 10.8.5 Chrome 29.0.1547.76

dmauro commented 11 years ago

Sorry, I asked for browser/OS before remembering that this is a limitation of Keypress based on browser limitations. From the Keypress page:

Non-modifier keys do not ever fire a keyup event when the command key is held down, so we manually force a keyup event immediately after keydown is received. This means that if your combo includes the meta key, it can contain any number of modifier keys, but only one non-modifier key. Modifier keys are: "meta", "alt", "option", "ctrl", "shift", and "cmd".

I'll revisit this and see if I can come up with some kind of solution if this is something people are looking for.

zhuangya commented 4 years ago

close due to inactive for a very long time.