diff options
Diffstat (limited to 'ui/widgets/menu.js')
-rw-r--r-- | ui/widgets/menu.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/widgets/menu.js b/ui/widgets/menu.js index 73800506f..49da26865 100644 --- a/ui/widgets/menu.js +++ b/ui/widgets/menu.js @@ -236,9 +236,12 @@ return $.widget( "ui.menu", { default: preventDefault = false; prev = this.previousFilter || ""; - character = String.fromCharCode( event.keyCode ); skip = false; + // Support number pad values + character = event.keyCode >= 96 && event.keyCode <= 105 ? + ( event.keyCode - 96 ).toString() : String.fromCharCode( event.keyCode ); + clearTimeout( this.filterTimer ); if ( character === prev ) { |