Skip to content
Permalink
Browse files

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

Fixes #5542 - Add keyCodes for command buttons.
  • Loading branch information...
scottgonzalez committed Apr 23, 2010
1 parent e087e7d commit 3570c1f768244b252cad86ac0f8707de0234fe6c
Showing with 6 additions and 1 deletion.
  1. +6 −1 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
}
};

2 comments on commit 3570c1f

@jzaefferer

This comment has been minimized.

Copy link
Member

replied Apr 24, 2010

Whats COMMAND and variants and MENU supposed to be?

@scottgonzalez

This comment has been minimized.

Copy link
Member Author

replied Apr 24, 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 sign in to comment.
You can’t perform that action at this time.