Closed tiye closed 11 years ago
is_sequence is for sequential combos, for instance, that would fire when you press meta followed by s. It sounds like what you want is is_ordered to be set to true, which means that you have to press the keys down in the ordered specified (meta + s would work, s + meta would not).
My mistake. Now it's right after setting to is_ordered: true
.
Keydown events are always called twice on my demo. I found that if I didn't set
is_sequence
, things go right, but bothmeta s
ands meta
would callback. So here's my code (withkeypress.js
compiled withcoffee
1.6.2):In the
_key_down
function,_fire
was triggered twice, first time at: https://github.com/dmauro/Keypress/blob/master/keypress.coffee#L314 second time at: https://github.com/dmauro/Keypress/blob/master/keypress.coffee#L335 I haven't figured out how it happens so far.