Skip to content
Permalink
Browse files

Selectmenu: fixed keyboard control (follow-up)

  • Loading branch information...
fnagel committed Jan 12, 2012
1 parent 7621313 commit d753f41a1f2bfed3dcacde4e1c631a553a364268
Showing with 6 additions and 0 deletions.
  1. +6 −0 ui/jquery.ui.selectmenu.js
@@ -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 {

0 comments on commit d753f41

Please sign in to comment.
You can’t perform that action at this time.