Skip to content
Permalink
Browse files

Menu: Add comment explaining extra filter from keypress

  • Loading branch information...
kborchers committed Jun 1, 2012
1 parent ef9a0c0 commit 6e7ee9860356d203e75086a1ca92864fe1d9f246
Showing with 2 additions and 1 deletion.
  1. +2 −1 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() {

0 comments on commit 6e7ee98

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