mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: close open menu on escape keydown
This commit is contained in:
parent
af0d520704
commit
c424ae40f0
1
ui/jquery.ui.selectmenu.js
vendored
1
ui/jquery.ui.selectmenu.js
vendored
@ -328,6 +328,7 @@ $.widget( "ui.selectmenu", {
|
||||
var prevDef = true;
|
||||
switch (event.keyCode) {
|
||||
case $.ui.keyCode.TAB:
|
||||
case $.ui.keyCode.ESCAPE:
|
||||
if ( this.isOpen ) {
|
||||
this.close( event );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user