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

Only close modal if escape was hit with keydown; fixes #13929 #14000

Merged
merged 1 commit into from
Jul 6, 2014

Conversation

hnrch02
Copy link
Collaborator

@hnrch02 hnrch02 commented Jul 1, 2014

See #13929 and also #13855.

Adds two unit tests for this as well.

/cc @fat

@cvrebert cvrebert added the js label Jul 1, 2014
@cvrebert
Copy link
Collaborator

cvrebert commented Jul 1, 2014

I can confirm that this seems to fix the Esc-after-opening-the-print-dialog and Esc-with-an-open-<select>-menu cases.

@cvrebert cvrebert added this to the v3.2.1 milestone Jul 1, 2014
@hnrch02
Copy link
Collaborator Author

hnrch02 commented Jul 1, 2014

Ah, yeah, testcase here: http://jsbin.com/feloj/2/edit

@hnrch02
Copy link
Collaborator Author

hnrch02 commented Jul 1, 2014

BTW, in #13853 I'll refactor most of the async unit tests to look like the two I added here, because then they actually fail instead of just timing out.

@fat
Copy link
Member

fat commented Jul 6, 2014

oh wow that's super weird

@fat
Copy link
Member

fat commented Jul 6, 2014

thanks for the fix w/tests 😍

fat added a commit that referenced this pull request Jul 6, 2014
Only close modal if escape was hit with keydown; fixes #13929
@fat fat merged commit 13a4c50 into twbs:master Jul 6, 2014
@hnrch02 hnrch02 deleted the modal-keydown branch July 6, 2014 06:56
@cvrebert cvrebert mentioned this pull request Jul 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants