diff options
author | Felix Nagel <info@felixnagel.com> | 2012-01-12 01:05:08 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-01-12 01:05:08 +0100 |
commit | d753f41a1f2bfed3dcacde4e1c631a553a364268 (patch) | |
tree | d2d0b73212dfbd1a63ea1066bdef4b5f2180146d /ui/jquery.ui.selectmenu.js | |
parent | 762131396e8c993b1bef3d786bbd6cc34dfb4bce (diff) | |
download | jquery-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.js | 6 |
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 { |