v1.1.0
This release introduces a new method on Keystrokes - checkKeyComboSequenceIndex
. It will return the sequence index of the combo - 0 if the combo is not active at all. For each sequence active within the combo the returned value will be incremented. So for a combo like g,o
if g
is pressed then the returned index will be 1
. If then g
is released and o
is pressed the index will be 2
. Once o
is released the index will be 0
again.
It also updates bindEnvironment
to optionally take onActive
, onInactive
, onKeyPressed
, onKeyReleased
, mapKeyComboEvent
, selfReleasingKeys
, and keyRemap
in an options object exactly like the Keystrokes constructor.
Lastly I've updated the readme to better explain how combo operators work.
Thanks to @pilliq for suggesting the idea that led to checkKeyComboSequenceIndex
's implementation.