mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: Select value when closing with space
This commit is contained in:
parent
15032d17d9
commit
2845d38d40
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -346,7 +346,11 @@ $.widget( "ui.selectmenu", {
|
||||
}
|
||||
break;
|
||||
case $.ui.keyCode.SPACE:
|
||||
this._toggle( event );
|
||||
if ( this.isOpen ) {
|
||||
this.menu.menu( "select", event );
|
||||
} else {
|
||||
this._toggle( event );
|
||||
}
|
||||
break;
|
||||
case $.ui.keyCode.LEFT:
|
||||
this._move( "previous", event );
|
||||
|
Loading…
Reference in New Issue
Block a user