Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequences with repetition of a single character trigger on first press of charachter #120

Open
zwalker opened this issue Jul 14, 2016 · 1 comment
Labels

Comments

@zwalker
Copy link
Contributor

zwalker commented Jul 14, 2016

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") });

@dmauro dmauro added the bug label Jul 18, 2016
@dmauro
Copy link
Owner

dmauro commented Jul 18, 2016

Nice catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants