nsIDOMKeyEvent

IID:028e0e6e-8b01-11d3-aae7-0010838a3123
Inherits From:nsIDOMUIEvent

Constants

PRUint32 DOM_VK_CANCEL = 3
PRUint32 DOM_VK_HELP = 6
PRUint32 DOM_VK_BACK_SPACE = 8
PRUint32 DOM_VK_TAB = 9
PRUint32 DOM_VK_CLEAR = 12
PRUint32 DOM_VK_RETURN = 13
PRUint32 DOM_VK_ENTER = 14
PRUint32 DOM_VK_SHIFT = 16
PRUint32 DOM_VK_CONTROL = 17
PRUint32 DOM_VK_ALT = 18
PRUint32 DOM_VK_PAUSE = 19
PRUint32 DOM_VK_CAPS_LOCK = 20
PRUint32 DOM_VK_ESCAPE = 27
PRUint32 DOM_VK_SPACE = 32
PRUint32 DOM_VK_PAGE_UP = 33
PRUint32 DOM_VK_PAGE_DOWN = 34
PRUint32 DOM_VK_END = 35
PRUint32 DOM_VK_HOME = 36
PRUint32 DOM_VK_LEFT = 37
PRUint32 DOM_VK_UP = 38
PRUint32 DOM_VK_RIGHT = 39
PRUint32 DOM_VK_DOWN = 40
PRUint32 DOM_VK_PRINTSCREEN = 44
PRUint32 DOM_VK_INSERT = 45
PRUint32 DOM_VK_DELETE = 46
PRUint32 DOM_VK_0 = 48
PRUint32 DOM_VK_1 = 49
PRUint32 DOM_VK_2 = 50
PRUint32 DOM_VK_3 = 51
PRUint32 DOM_VK_4 = 52
PRUint32 DOM_VK_5 = 53
PRUint32 DOM_VK_6 = 54
PRUint32 DOM_VK_7 = 55
PRUint32 DOM_VK_8 = 56
PRUint32 DOM_VK_9 = 57
PRUint32 DOM_VK_SEMICOLON = 59
PRUint32 DOM_VK_EQUALS = 61
PRUint32 DOM_VK_A = 65
PRUint32 DOM_VK_B = 66
PRUint32 DOM_VK_C = 67
PRUint32 DOM_VK_D = 68
PRUint32 DOM_VK_E = 69
PRUint32 DOM_VK_F = 70
PRUint32 DOM_VK_G = 71
PRUint32 DOM_VK_H = 72
PRUint32 DOM_VK_I = 73
PRUint32 DOM_VK_J = 74
PRUint32 DOM_VK_K = 75
PRUint32 DOM_VK_L = 76
PRUint32 DOM_VK_M = 77
PRUint32 DOM_VK_N = 78
PRUint32 DOM_VK_O = 79
PRUint32 DOM_VK_P = 80
PRUint32 DOM_VK_Q = 81
PRUint32 DOM_VK_R = 82
PRUint32 DOM_VK_S = 83
PRUint32 DOM_VK_T = 84
PRUint32 DOM_VK_U = 85
PRUint32 DOM_VK_V = 86
PRUint32 DOM_VK_W = 87
PRUint32 DOM_VK_X = 88
PRUint32 DOM_VK_Y = 89
PRUint32 DOM_VK_Z = 90
PRUint32 DOM_VK_CONTEXT_MENU = 93
PRUint32 DOM_VK_NUMPAD0 = 96
PRUint32 DOM_VK_NUMPAD1 = 97
PRUint32 DOM_VK_NUMPAD2 = 98
PRUint32 DOM_VK_NUMPAD3 = 99
PRUint32 DOM_VK_NUMPAD4 = 100
PRUint32 DOM_VK_NUMPAD5 = 101
PRUint32 DOM_VK_NUMPAD6 = 102
PRUint32 DOM_VK_NUMPAD7 = 103
PRUint32 DOM_VK_NUMPAD8 = 104
PRUint32 DOM_VK_NUMPAD9 = 105
PRUint32 DOM_VK_MULTIPLY = 106
PRUint32 DOM_VK_ADD = 107
PRUint32 DOM_VK_SEPARATOR = 108
PRUint32 DOM_VK_SUBTRACT = 109
PRUint32 DOM_VK_DECIMAL = 110
PRUint32 DOM_VK_DIVIDE = 111
PRUint32 DOM_VK_F1 = 112
PRUint32 DOM_VK_F2 = 113
PRUint32 DOM_VK_F3 = 114
PRUint32 DOM_VK_F4 = 115
PRUint32 DOM_VK_F5 = 116
PRUint32 DOM_VK_F6 = 117
PRUint32 DOM_VK_F7 = 118
PRUint32 DOM_VK_F8 = 119
PRUint32 DOM_VK_F9 = 120
PRUint32 DOM_VK_F10 = 121
PRUint32 DOM_VK_F11 = 122
PRUint32 DOM_VK_F12 = 123
PRUint32 DOM_VK_F13 = 124
PRUint32 DOM_VK_F14 = 125
PRUint32 DOM_VK_F15 = 126
PRUint32 DOM_VK_F16 = 127
PRUint32 DOM_VK_F17 = 128
PRUint32 DOM_VK_F18 = 129
PRUint32 DOM_VK_F19 = 130
PRUint32 DOM_VK_F20 = 131
PRUint32 DOM_VK_F21 = 132
PRUint32 DOM_VK_F22 = 133
PRUint32 DOM_VK_F23 = 134
PRUint32 DOM_VK_F24 = 135
PRUint32 DOM_VK_NUM_LOCK = 144
PRUint32 DOM_VK_SCROLL_LOCK = 145
PRUint32 DOM_VK_COMMA = 188
PRUint32 DOM_VK_PERIOD = 190
PRUint32 DOM_VK_SLASH = 191
PRUint32 DOM_VK_BACK_QUOTE = 192
PRUint32 DOM_VK_OPEN_BRACKET = 219
PRUint32 DOM_VK_BACK_SLASH = 220
PRUint32 DOM_VK_CLOSE_BRACKET = 221
PRUint32 DOM_VK_QUOTE = 222
PRUint32 DOM_VK_META = 224

Properties

readonly PRBool altKey

readonly PRUint32 charCode

readonly PRBool ctrlKey

readonly PRUint32 keyCode

readonly PRBool metaKey

readonly PRBool shiftKey


Methods

void initKeyEvent ( DOMString typeArg , PRBool canBubbleArg , PRBool cancelableArg , nsIDOMAbstractView viewArg , PRBool ctrlKeyArg , PRBool altKeyArg , PRBool shiftKeyArg , PRBool metkeyArg , PRUint32 keyCodeArg , PRUint32 charCodeArg )

void initKeyEvent ( DOMString typeArg , PRBool canBubbleArg , PRBool cancelableArg , nsIDOMAbstractView viewArg , PRBool ctrlKeyArg , PRBool altKeyArg , PRBool shiftKeyArg , PRBool metkeyArg , PRUint32 keyCodeArg , PRUint32 charCodeArg )

Arguments:
typeArg
canBubbleArg
cancelableArg
viewArg
ctrlKeyArg
altKeyArg
shiftKeyArg
metkeyArg
keyCodeArg
charCodeArg

References

This interface is passed as an argument to the following methods:

nsIPlaintextEditor.handleKeyPress

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com