Skip to content
Permalink
Browse files

Selectmenu: Select value when closing with space

  • Loading branch information...
jzaefferer committed Dec 9, 2012
1 parent 15032d1 commit 2845d38d405148b8628929e1cadc0ffe7f6f8abf
Showing with 5 additions and 1 deletion.
  1. +5 −1 ui/jquery.ui.selectmenu.js
@@ -346,7 +346,11 @@ $.widget( "ui.selectmenu", {
}
break;
case $.ui.keyCode.SPACE:
this._toggle( event );
if ( this.isOpen ) {
this.menu.menu( "select", event );
} else {
this._toggle( event );
}
break;
case $.ui.keyCode.LEFT:
this._move( "previous", event );

0 comments on commit 2845d38

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