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

Clear timeout in multi-press keyboard shortcuts. #5045

Merged
merged 2 commits into from Feb 7, 2014

Conversation

ellisonbg
Copy link
Member

This fixes #5038

Tests to follow in later testing PR.

if (c[shortcut] === data.count-1) {
c[shortcut] = 0;
var timer = t[shortcut];
if (timer) {clearTimeout(timer);}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we delete t[shortcut] here?

@ellisonbg
Copy link
Member Author

OK, old timeout is deleted.

@ellisonbg
Copy link
Member Author

I think this one can be merged.

minrk added a commit that referenced this pull request Feb 7, 2014
Clear timeout in multi-press keyboard shortcuts.
@minrk minrk merged commit a36df26 into ipython:master Feb 7, 2014
@ellisonbg ellisonbg deleted the multipress branch February 8, 2014 19:50
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
Clear timeout in multi-press keyboard shortcuts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix multiple press keyboard events
2 participants