KeyEvent
declare class KeyEvent {}
Static Property
KEYCODE_ESCAPE
Signature
declare class KeyEvent {
static KEYCODE_ESCAPE: number
}
Description
Represents the Escape key.
KEYCODE_F1
Signature
declare class KeyEvent {
static KEYCODE_F1: number
}
Description
Represents the F1 key.
KEYCODE_F2
Signature
declare class KeyEvent {
static KEYCODE_F2: number
}
Description
Represents the F2 key.
KEYCODE_F3
Signature
declare class KeyEvent {
static KEYCODE_F3: number
}
Description
Represents the F3 key.
KEYCODE_F4
Signature
declare class KeyEvent {
static KEYCODE_F4: number
}
Description
Represents the F4 key.
KEYCODE_F5
Signature
declare class KeyEvent {
static KEYCODE_F5: number
}
Description
Represents the F5 key.
KEYCODE_F6
Signature
declare class KeyEvent {
static KEYCODE_F6: number
}
Description
Represents the F6 key.
KEYCODE_F7
Signature
declare class KeyEvent {
static KEYCODE_F7: number
}
Description
Represents the F7 key.
KEYCODE_F8
Signature
declare class KeyEvent {
static KEYCODE_F8: number
}
Description
Represents the F8 key.
KEYCODE_F9
Signature
declare class KeyEvent {
static KEYCODE_F9: number
}
Description
Represents the F9 key.
KEYCODE_F10
Signature
declare class KeyEvent {
static KEYCODE_F10: number
}
Description
Represents the F10 key.
KEYCODE_F11
Signature
declare class KeyEvent {
static KEYCODE_F11: number
}
Description
Represents the F11 key.
KEYCODE_F12
Signature
declare class KeyEvent {
static KEYCODE_F12: number
}
Description
Represents the F12 key.
KEYCODE_SCROLL_LOCK
Signature
declare class KeyEvent {
static KEYCODE_SCROLL_LOCK: number
}
Description
Represents the Scroll Lock key.
KEYCODE_GRAVE
Signature
declare class KeyEvent {
static KEYCODE_GRAVE: number
}
Description
Represents the Grave key.
KEYCODE_NUMPAD_1
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_1: number
}
Description
Represents thenumber
pad 1 key.
KEYCODE_NUMPAD_2
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_2: number
}
Description
Represents thenumber
pad 2 key.
KEYCODE_NUMPAD_3
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_3: number
}
Description
Represents thenumber
pad 3 key.
KEYCODE_NUMPAD_4
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_4: number
}
Description
Represents thenumber
pad 4 key.
KEYCODE_NUMPAD_5
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_5: number
}
Description
Represents thenumber
pad 5 key.
KEYCODE_NUMPAD_6
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_6: number
}
Description
Represents thenumber
pad 6 key.
KEYCODE_NUMPAD_7
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_7: number
}
Description
Represents thenumber
pad 7 key.
KEYCODE_NUMPAD_8
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_8: number
}
Description
Represents thenumber
pad 8 key.
KEYCODE_NUMPAD_9
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_9: number
}
Description
Represents thenumber
pad 9 key.
KEYCODE_NUMPAD_0
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_0: number
}
Description
Represents thenumber
pad 0 key.
KEYCODE_MINUS
Signature
declare class KeyEvent {
static KEYCODE_MINUS: number
}
Description
Represents the Minus (-) key.
KEYCODE_EQUALS
Signature
declare class KeyEvent {
static KEYCODE_EQUALS: number
}
Description
Represents the Equals (=) key.
KEYCODE_BACK
Signature
declare class KeyEvent {
static KEYCODE_BACK: number
}
Description
Represents the Back key.
KEYCODE_INSERT
Signature
declare class KeyEvent {
static KEYCODE_INSERT: number
}
Description
Represents the Insert key.
KEYCODE_HOME
Signature
declare class KeyEvent {
static KEYCODE_HOME: number
}
Description
Represents the Home key.
KEYCODE_PAGE_UP
Signature
declare class KeyEvent {
static KEYCODE_PAGE_UP: number
}
Description
Represents the Page Up key.
KEYCODE_DEL
Signature
declare class KeyEvent {
static KEYCODE_DEL: number
}
Description
Represents the Delete key.
KEYCODE_ENDCALL
Signature
declare class KeyEvent {
static KEYCODE_ENDCALL: number
}
Description
Represents the End Call key.
KEYCODE_PAGE_DOWN
Signature
declare class KeyEvent {
static KEYCODE_PAGE_DOWN: number
}
Description
Represents the Page Down key.
KEYCODE_TAB
Signature
declare class KeyEvent {
static KEYCODE_TAB: number
}
Description
Represents the Tab key.
KEYCODE_Q
Signature
declare class KeyEvent {
static KEYCODE_Q: number
}
Description
Represents the Q key.
KEYCODE_W
Signature
declare class KeyEvent {
static KEYCODE_W: number
}
Description
Represents the W key.
KEYCODE_E
Signature
declare class KeyEvent {
static KEYCODE_E: number
}
Description
Represents the E key.
KEYCODE_R
Signature
declare class KeyEvent {
static KEYCODE_R: number
}
Description
Represents the R key.
KEYCODE_T
Signature
declare class KeyEvent {
static KEYCODE_T: number
}
Description
Represents the T key.
KEYCODE_Y
Signature
declare class KeyEvent {
static KEYCODE_Y: number
}
Description
Represents the Y key.
KEYCODE_U
Signature
declare class KeyEvent {
static KEYCODE_U: number
}
Description
Represents the U key.
KEYCODE_I
Signature
declare class KeyEvent {
static KEYCODE_I: number
}
Description
Represents the I key.
KEYCODE_0
Signature
declare class KeyEvent {
static KEYCODE_0: number
}
Description
Represents the 0 key.
KEYCODE_P
Signature
declare class KeyEvent {
static KEYCODE_P: number
}
Description
Represents the P key.
KEYCODE_BACKSLASH
Signature
declare class KeyEvent {
static KEYCODE_BACKSLASH: number
}
Description
Represents the Backslash () key.
KEYCODE_LEFT_BRACKET
Signature
declare class KeyEvent {
static KEYCODE_LEFT_BRACKET: number
}
Description
Represents the Left Bracket ([) key.
KEYCODE_RIGHT_BRACKET
Signature
declare class KeyEvent {
static KEYCODE_RIGHT_BRACKET: number
}
Description
Represents the Right Bracket (]) key.
KEYCODE_CAPS_LOCK
Signature
declare class KeyEvent {
static KEYCODE_CAPS_LOCK: number
}
Description
Represents the Caps Lock key.
KEYCODE_A
Signature
declare class KeyEvent {
static KEYCODE_A: number
}
Description
Represents the A key.
KEYCODE_S
Signature
declare class KeyEvent {
static KEYCODE_S: number
}
Description
Represents the S key.
KEYCODE_D
Signature
declare class KeyEvent {
static KEYCODE_D: number
}
Description
Represents the D key.
KEYCODE_F
Signature
declare class KeyEvent {
static KEYCODE_F: number
}
Description
Represents the F key.
KEYCODE_G
Signature
declare class KeyEvent {
static KEYCODE_G: number
}
Description
Represents the G key.
KEYCODE_H
Signature
declare class KeyEvent {
static KEYCODE_H: number
}
Description
Represents the H key.
KEYCODE_J
Signature
declare class KeyEvent {
static KEYCODE_J: number
}
Description
Represents the J key.
KEYCODE_K
Signature
declare class KeyEvent {
static KEYCODE_K: number
}
Description
Represents the K key.
KEYCODE_L
Signature
declare class KeyEvent {
static KEYCODE_L: number
}
Description
Represents the L key.
KEYCODE_SEMICOLON
Signature
declare class KeyEvent {
static KEYCODE_SEMICOLON: number
}
Description
Represents the Semicolon (;) key.
KEYCODE_APOSTROPHE
Signature
declare class KeyEvent {
static KEYCODE_APOSTROPHE: number
}
Description
Represents the Apostrophe (') key.
KEYCODE_ENTER
Signature
declare class KeyEvent {
static KEYCODE_ENTER: number
}
Description
Represents the Enter key.
KEYCODE_SHIFT_LEFT
Signature
declare class KeyEvent {
static KEYCODE_SHIFT_LEFT: number
}
Description
Represents the Left Shift key.
KEYCODE_Z
Signature
declare class KeyEvent {
static KEYCODE_Z: number;
}
Description
Represents the Z key.
KEYCODE_X
Signature
declare class KeyEvent {
static KEYCODE_X: number;
}
Description
Represents the X key.
KEYCODE_C
Signature
declare class KeyEvent {
static KEYCODE_C: number;
}
Description
Represents the C key.
KEYCODE_V
Signature
declare class KeyEvent {
static KEYCODE_V: number;
}
Description
Represents the V key.
KEYCODE_B
Signature
declare class KeyEvent {
static KEYCODE_B: number;
}
Description
Represents the B key.
KEYCODE_N
Signature
declare class KeyEvent {
static KEYCODE_N: number;
}
Description
Represents the N key.
KEYCODE_M
Signature
declare class KeyEvent {
static KEYCODE_M: number;
}
Description
Represents the M key.
KEYCODE_COMMA
Signature
declare class KeyEvent {
static KEYCODE_COMMA: number;
}
Description
Represents the Comma (,) key.
KEYCODE_PERIOD
Signature
declare class KeyEvent {
static KEYCODE_PERIOD: number;
}
Description
Represents the Period (.) key.
KEYCODE_SLASH
Signature
declare class KeyEvent {
static KEYCODE_SLASH: number;
}
Description
Represents the Slash (/) key.
KEYCODE_CTRL_LEFT
Signature
declare class KeyEvent {
static KEYCODE_CTRL_LEFT: number;
}
Description
Represents the Left Control key.
KEYCODE_META_LEFT
Signature
declare class KeyEvent {
static KEYCODE_META_LEFT: number;
}
Description
Represents the Left Meta key.
KEYCODE_ALT_LEFT
Signature
declare class KeyEvent {
static KEYCODE_ALT_LEFT: number;
}
Description
Represents the Left Alt key.
KEYCODE_SPACE
Signature
declare class KeyEvent {
static KEYCODE_SPACE: number;
}
Description
Represents the Space key.
KEYCODE_ALT_RIGHT
Signature
declare class KeyEvent {
static KEYCODE_ALT_RIGHT: number;
}
Description
Represents the Right Alt key.
KEYCODE_MENU
Signature
declare class KeyEvent {
static KEYCODE_MENU: number;
}
Description
Represents the Menu key.
KEYCODE_CTRL_RIGHT
Signature
declare class KeyEvent {
static KEYCODE_CTRL_RIGHT: number;
}
Description
Represents the Right Control key.
KEYCODE_DPAD_UP
Signature
declare class KeyEvent {
static KEYCODE_DPAD_UP: number;
}
Description
Represents the Up arrow key on the D-pad.
KEYCODE_DPAD_LEFT
Signature
declare class KeyEvent {
static KEYCODE_DPAD_LEFT: number;
}
Description
Represents the Left arrow key on the D-pad.
KEYCODE_DPAD_DOWN
Signature
declare class KeyEvent {
static KEYCODE_DPAD_DOWN: number;
}
Description
Represents the Down arrow key on the D-pad.
KEYCODE_DPAD_RIGHT
Signature
declare class KeyEvent {
static KEYCODE_DPAD_RIGHT: number;
}
Description
Represents the Right arrow key on the D-pad.
KEYCODE_NUM_LOCK
Signature
declare class KeyEvent {
static KEYCODE_NUM_LOCK: number;
}
Description
Represents the Num Lock key.
KEYCODE_NUMPAD_DIVIDE
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_DIVIDE: number;
}
Description
Represents the Divide (/) key on thenumber
pad.
KEYCODE_NUMPAD_MULTIPLY
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_MULTIPLY: number;
}
Description
Represents the Multiply (*) key on thenumber
pad.
KEYCODE_NUMPAD_SUBTRACT
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_SUBTRACT: number;
}
Description
Represents the Subtract (-) key on thenumber
pad.
KEYCODE_NUMPAD_ADD
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_ADD: number;
}
Description
Represents the Add (+) key on thenumber
pad.
KEYCODE_NUMPAD_DOT
Signature
declare class KeyEvent {
static KEYCODE_NUMPAD_DOT: number;
}
Description
Represents the Decimal Point (.) key on thenumber
pad.
Instance Method
getAction
Signature
declare class KeyEvent {
getAction():number;
}
Description
Retrieve the action of this key event. May be eitherACTION_DOWN
ACTION_UP
.
getKeyCode
Signature
declare class KeyEvent {
getKeyCode():number;
}
Description
Retrieve the key code of the key event.
getMetaState
Signature
declare class KeyEvent {
getMetaState():number;
}
Description
Returns the state of the meta keys.