Skip to content
Permalink
Browse files

Selectmenu: improve keyboard control

  • Loading branch information
fnagel committed Mar 7, 2013
1 parent f128292 commit 6e80a19d027b97ef5d4761058c7dbc1a6ded16db
Showing with 2 additions and 3 deletions.
  1. +2 −3 ui/jquery.ui.selectmenu.js
@@ -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 );

0 comments on commit 6e80a19

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