aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.menu.js
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-05-31 23:03:51 -0500
committerkborchers <kris.borchers@gmail.com>2012-05-31 23:03:51 -0500
commit6e7ee9860356d203e75086a1ca92864fe1d9f246 (patch)
tree4c82965153ed84240914064ae9877c62b5693149 /ui/jquery.ui.menu.js
parentef9a0c005cf8b299262a490b1ac5a529657d6829 (diff)
downloadjquery-ui-6e7ee9860356d203e75086a1ca92864fe1d9f246.tar.gz
jquery-ui-6e7ee9860356d203e75086a1ca92864fe1d9f246.zip
Menu: Add comment explaining extra filter from keypress
Diffstat (limited to 'ui/jquery.ui.menu.js')
-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() {