github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 563
    • 91
  • Source
  • Commits
  • Network (91)
  • Graphs
  • Tree: cb7eb69

click here to add a description

click here to add a homepage

  • Switch Branches (7)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
  • Switch Tags (18)
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Autocomplete: Ignore command (left and right/menu/windows), insert, caps lock, 
home, end keys.

Fixes #5415 - Catch all common keys while typing a word.
scottgonzalez (author)
Fri Apr 23 10:00:54 -0700 2010
commit  cb7eb69973c62f26bcde
tree    080587d87654de4b3064
parent  3570c1f768244b252cad
M ui/jquery.ui.autocomplete.js 7 •••••
Txt ui/jquery.ui.autocomplete.js
  • View file @ cb7eb69
... ...
@@ -51,6 +51,7 @@ $.widget( "ui.autocomplete", {
51 51
           event.preventDefault();
52 52
           break;
53 53
         case keyCode.ENTER:
  54
+        case keyCode.NUMPAD_ENTER:
54 55
           // when menu is open or has focus
55 56
           if ( self.menu.active ) {
56 57
             event.preventDefault();
... ...
@@ -71,6 +72,12 @@ $.widget( "ui.autocomplete", {
71 72
         case keyCode.SHIFT:
72 73
         case keyCode.CONTROL:
73 74
         case keyCode.ALT:
  75
+        case keyCode.COMMAND:
  76
+        case keyCode.COMMAND_RIGHT:
  77
+        case keyCode.INSERT:
  78
+        case keyCode.CAPS_LOCK:
  79
+        case keyCode.END:
  80
+        case keyCode.HOME:
74 81
           // ignore metakeys (shift, ctrl, alt)
75 82
           break;
76 83
         default:

0 notes on commit cb7eb69

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server