mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed keyboard control (follow-up)
This commit is contained in:
parent
762131396e
commit
d753f41a1f
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@ -293,6 +293,11 @@ $.widget( "ui.selectmenu", {
|
||||
},
|
||||
|
||||
_move: function( direction, event ) {
|
||||
// init menu when not done yet
|
||||
if ( !this.wasOpen ) {
|
||||
this.refresh();
|
||||
this.wasOpen = true;
|
||||
}
|
||||
if ( direction == "first" || direction == "last" ) {
|
||||
// set focus manually for first or last item
|
||||
this.menu.menu( "focus", event, this.menu.find( "li" ).not( '.ui-selectmenu-optgroup' )[ direction ]() );
|
||||
@ -352,6 +357,7 @@ $.widget( "ui.selectmenu", {
|
||||
}
|
||||
break;
|
||||
case $.ui.keyCode.DOWN:
|
||||
console.log("test");
|
||||
if ( event.altKey ) {
|
||||
this._toggle( event );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user