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: 3570c1f

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

Core: Added COMMAND/COMMAND_LEFT/WINDOWS, COMMAND_RIGHT/MENU key codes.

Fixes #5542 - Add keyCodes for command buttons.
scottgonzalez (author)
Fri Apr 23 09:56:52 -0700 2010
commit  3570c1f768244b252cad
tree    5e05fc136eb3a9f131f1
parent  e087e7dee07555f7b78e
M ui/jquery.ui.core.js 7 ••••
Txt ui/jquery.ui.core.js
  • View file @ 3570c1f
... ...
@@ -74,6 +74,9 @@ $.ui = {
74 74
     BACKSPACE: 8,
75 75
     CAPS_LOCK: 20,
76 76
     COMMA: 188,
  77
+    COMMAND: 91,
  78
+    COMMAND_LEFT: 91, // COMMAND
  79
+    COMMAND_RIGHT: 93,
77 80
     CONTROL: 17,
78 81
     DELETE: 46,
79 82
     DOWN: 40,
... ...
@@ -83,6 +86,7 @@ $.ui = {
83 86
     HOME: 36,
84 87
     INSERT: 45,
85 88
     LEFT: 37,
  89
+    MENU: 93, // COMMAND_RIGHT
86 90
     NUMPAD_ADD: 107,
87 91
     NUMPAD_DECIMAL: 110,
88 92
     NUMPAD_DIVIDE: 111,
... ...
@@ -96,7 +100,8 @@ $.ui = {
96 100
     SHIFT: 16,
97 101
     SPACE: 32,
98 102
     TAB: 9,
99  
-    UP: 38
  103
+    UP: 38,
  104
+    WINDOWS: 91 // COMMAND
100 105
   }
101 106
 };
102 107
 

2 notes on commit 3570c1f

jzaefferer added a note to 3570c1f repo collab

Sat Apr 24 07:53:48 -0700 2010

Whats COMMAND and variants and MENU supposed to be?

scottgonzalez added a note to 3570c1f repo collab

Sat Apr 24 12:18:39 -0700 2010

COMMAND/COMMAND_LEFT/WINDOWS is the command (meta) key on Apple keyboards and the Windows key on Windows keyboards. COMMAND_RIGHT/MENU is the command key on the right side of Apple keyboards and the (context) menu key on the right side of Windows keyboards.

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