aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-04-23 12:56:52 -0400
committerScott González <scott.gonzalez@gmail.com>2010-04-23 12:56:52 -0400
commit3570c1f768244b252cad86ac0f8707de0234fe6c (patch)
tree5e05fc136eb3a9f131f1c771fb8b6636debcb862 /ui
parente087e7dee07555f7b78e108dc414959998628ec7 (diff)
downloadjquery-ui-3570c1f768244b252cad86ac0f8707de0234fe6c.tar.gz
jquery-ui-3570c1f768244b252cad86ac0f8707de0234fe6c.zip
Core: Added COMMAND/COMMAND_LEFT/WINDOWS, COMMAND_RIGHT/MENU key codes.
Fixes #5542 - Add keyCodes for command buttons.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.core.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index c0eab46b4..18f0361ea 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -74,6 +74,9 @@ $.ui = {
BACKSPACE: 8,
CAPS_LOCK: 20,
COMMA: 188,
+ COMMAND: 91,
+ COMMAND_LEFT: 91, // COMMAND
+ COMMAND_RIGHT: 93,
CONTROL: 17,
DELETE: 46,
DOWN: 40,
@@ -83,6 +86,7 @@ $.ui = {
HOME: 36,
INSERT: 45,
LEFT: 37,
+ MENU: 93, // COMMAND_RIGHT
NUMPAD_ADD: 107,
NUMPAD_DECIMAL: 110,
NUMPAD_DIVIDE: 111,
@@ -96,7 +100,8 @@ $.ui = {
SHIFT: 16,
SPACE: 32,
TAB: 9,
- UP: 38
+ UP: 38,
+ WINDOWS: 91 // COMMAND
}
};