Skip to content

Commit d753f41

Browse files
committed
Selectmenu: fixed keyboard control (follow-up)
1 parent 7621313 commit d753f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ $.widget( "ui.selectmenu", {
293293
},
294294

295295
_move: function( direction, event ) {
296+
// init menu when not done yet
297+
if ( !this.wasOpen ) {
298+
this.refresh();
299+
this.wasOpen = true;
300+
}
296301
if ( direction == "first" || direction == "last" ) {
297302
// set focus manually for first or last item
298303
this.menu.menu( "focus", event, this.menu.find( "li" ).not( '.ui-selectmenu-optgroup' )[ direction ]() );
@@ -352,6 +357,7 @@ $.widget( "ui.selectmenu", {
352357
}
353358
break;
354359
case $.ui.keyCode.DOWN:
360+
console.log("test");
355361
if ( event.altKey ) {
356362
this._toggle( event );
357363
} else {

0 commit comments

Comments
 (0)