aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.menu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index daae776c0..4bcfbfdb2 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -229,7 +229,8 @@ $.widget( "ui.menu", {
this.active.nextAll( ".ui-menu-item" ) :
match;
- // TODO: document what's going on here, character is reset to the original value
+ // If no matches on the current filter, reset to the last character pressed
+ // to move down the menu to the first item that starts with that character
if ( !match.length ) {
character = String.fromCharCode( event.keyCode );
match = this.activeMenu.children( ".ui-menu-item" ).filter(function() {