aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-01-12 01:05:08 +0100
committerFelix Nagel <info@felixnagel.com>2012-01-12 01:05:08 +0100
commitd753f41a1f2bfed3dcacde4e1c631a553a364268 (patch)
treed2d0b73212dfbd1a63ea1066bdef4b5f2180146d /ui/jquery.ui.selectmenu.js
parent762131396e8c993b1bef3d786bbd6cc34dfb4bce (diff)
downloadjquery-ui-d753f41a1f2bfed3dcacde4e1c631a553a364268.tar.gz
jquery-ui-d753f41a1f2bfed3dcacde4e1c631a553a364268.zip
Selectmenu: fixed keyboard control (follow-up)
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r--ui/jquery.ui.selectmenu.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index ef56dcd04..35726b899 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/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 {