Keypress
Keypress copied to clipboard
Sequences with repetition of a single character trigger on first press of charachter
var keypressListener = new window.keypress.Listener();
// Will print "uh oh" on the first press of the "a" key //Should wait until third press of "a" keypressListener.sequence_combo("a a a", function (e, combo) { console.log('uh oh") });
// Will print "uh oh" on the first press of the "b" key //Should wait until second press of "b" keypressListener.sequence_combo("a b b", function (e, combo) { console.log('uh oh") });
Nice catch, thanks!