Conversation
|
#14646 (comment) also mentions closing the dropdown by the |
There was a problem hiding this comment.
Why switch to keyCode from which? I mean, keyCode should always be defined on a keydown event but which is normalized by jQuery.
There was a problem hiding this comment.
i just wanted it to be consistent… seemed ghetto to check for keyCode, then check for which below
|
i disagree with closing it with up - try with the actual option input provided http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2 |
|
also, native browser space selects in that option as well, so i think space selecting when open makes sense |
Was just mentioning it, though the dropdowns we provide aren't really comparable to select inputs IMO.
Again not really comparable, but also it requires two space hits to select an item: The first one opens the dropdown and the second one selects the first item. |
|
ah gotcha – i think it's fine for now. However I don't have really strong feels about it. if you want to change it, feel free :) going to merge this for now though |
Escape key should only close Dropdown
fixes #14646