-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Escape key should only close Dropdown #14646
Comments
I'm testing this now in Chrome 36 on Windows 7 I can't get the escape key to open the dropdown. However, the space key does open like you suggested already. |
Currently testing on Chrome 37 on OS X 10.9. Also tested on IE9 on Windows 7. http://getbootstrap.com/javascript/#dropdowns Current behavior
Expected behavior
|
@fat Do you agree on the the expected behavior that @tonifisler described? |
I found a demo on w3school: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2 , which has following behaviors:
Also, I made some changes related to these, see demo here: http://jsfiddle.net/wyfisgood/ubf12kx3/ |
Yep i agree |
I am getting the same issue in bootstrap version 4.0,0. On Esc key the drop-down opens but the behavior should be to lose the focus of drop-down or close the drop-down if it was open. Is there any fix for it ? |
Seems this regressed from 3.x to 4.x. opened a fresh issue about it. |
Currently, if a dropdown element is focused, the
escape
key opens and closes the list. It should only close it, as accessibility best practices would suggest.I'd suggest
space
key to open andescape
key to close.The text was updated successfully, but these errors were encountered: