mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: improve keyboard control
This commit is contained in:
parent
f128292636
commit
6e80a19d02
5
ui/jquery.ui.selectmenu.js
vendored
5
ui/jquery.ui.selectmenu.js
vendored
@ -296,7 +296,7 @@ $.widget( "ui.selectmenu", {
|
||||
this.button.addClass( "ui-state-focus" );
|
||||
this._off( this.button, "focus" );
|
||||
},
|
||||
click: function( event ) {
|
||||
click: function( event ) {
|
||||
this._toggle( event );
|
||||
event.preventDefault();
|
||||
},
|
||||
@ -332,9 +332,8 @@ $.widget( "ui.selectmenu", {
|
||||
case $.ui.keyCode.SPACE:
|
||||
if ( this.isOpen ) {
|
||||
this.menu.menu( "select", event );
|
||||
} else {
|
||||
this._toggle( event );
|
||||
}
|
||||
prevDef = false;
|
||||
break;
|
||||
case $.ui.keyCode.LEFT:
|
||||
this._move( "previous", event );
|
||||
|
Loading…
Reference in New Issue
Block a user