| Revision 8,
1.3 KB
checked in by root, 20 years ago
(diff) |
|
new import
|
| Line | |
|---|
| 1 | /* Copyright (c) 2006 Yahoo! Inc. All rights reserved. */ |
|---|
| 2 | |
|---|
| 3 | YAHOO.util.Key = new function() { |
|---|
| 4 | // this.logger = new ygLogger("ygEventUtil"); |
|---|
| 5 | // DOM key constants |
|---|
| 6 | this.DOM_VK_UNDEFINED = 0x0; |
|---|
| 7 | this.DOM_VK_RIGHT_ALT = 0x12; |
|---|
| 8 | this.DOM_VK_LEFT_ALT = 0x12; |
|---|
| 9 | this.DOM_VK_LEFT_CONTROL = 0x11; |
|---|
| 10 | this.DOM_VK_RIGHT_CONTROL = 0x11; |
|---|
| 11 | this.DOM_VK_LEFT_SHIFT = 0x10; |
|---|
| 12 | this.DOM_VK_RIGHT_SHIFT = 0x10; |
|---|
| 13 | this.DOM_VK_META = 0x9D; |
|---|
| 14 | this.DOM_VK_BACK_SPACE = 0x08; |
|---|
| 15 | this.DOM_VK_CAPS_LOCK = 0x14; |
|---|
| 16 | this.DOM_VK_DELETE = 0x7F; |
|---|
| 17 | this.DOM_VK_END = 0x23; |
|---|
| 18 | this.DOM_VK_ENTER = 0x0D; |
|---|
| 19 | this.DOM_VK_ESCAPE = 0x1B; |
|---|
| 20 | this.DOM_VK_HOME = 0x24; |
|---|
| 21 | this.DOM_VK_NUM_LOCK = 0x90; |
|---|
| 22 | this.DOM_VK_PAUSE = 0x13; |
|---|
| 23 | this.DOM_VK_PRINTSCREEN = 0x9A; |
|---|
| 24 | this.DOM_VK_SCROLL_LOCK = 0x91; |
|---|
| 25 | this.DOM_VK_SPACE = 0x20; |
|---|
| 26 | this.DOM_VK_TAB = 0x09; |
|---|
| 27 | this.DOM_VK_LEFT = 0x25; |
|---|
| 28 | this.DOM_VK_RIGHT = 0x27; |
|---|
| 29 | this.DOM_VK_UP = 0x26; |
|---|
| 30 | this.DOM_VK_DOWN = 0x28; |
|---|
| 31 | this.DOM_VK_PAGE_DOWN = 0x22; |
|---|
| 32 | this.DOM_VK_PAGE_UP = 0x21; |
|---|
| 33 | }; |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.