mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu: Add comment explaining extra filter from keypress
This commit is contained in:
parent
ef9a0c005c
commit
6e7ee98603
3
ui/jquery.ui.menu.js
vendored
3
ui/jquery.ui.menu.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user