[scriptable, uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)]
interface nsIDOMKeyEvent : nsIDOMUIEvent

Constants


          
const unsigned long DOM_VK_CANCEL = 3

          
const unsigned long DOM_VK_HELP = 6

          
const unsigned long DOM_VK_BACK_SPACE = 8

          
const unsigned long DOM_VK_TAB = 9

          
const unsigned long DOM_VK_CLEAR = 12

          
const unsigned long DOM_VK_RETURN = 13

          
const unsigned long DOM_VK_ENTER = 14

          
const unsigned long DOM_VK_SHIFT = 16

          
const unsigned long DOM_VK_CONTROL = 17

          
const unsigned long DOM_VK_ALT = 18

          
const unsigned long DOM_VK_PAUSE = 19

          
const unsigned long DOM_VK_CAPS_LOCK = 20

          
const unsigned long DOM_VK_ESCAPE = 27

          
const unsigned long DOM_VK_SPACE = 32

          
const unsigned long DOM_VK_PAGE_UP = 33

          
const unsigned long DOM_VK_PAGE_DOWN = 34

          
const unsigned long DOM_VK_END = 35

          
const unsigned long DOM_VK_HOME = 36

          
const unsigned long DOM_VK_LEFT = 37

          
const unsigned long DOM_VK_UP = 38

          
const unsigned long DOM_VK_RIGHT = 39

          
const unsigned long DOM_VK_DOWN = 40

          
const unsigned long DOM_VK_PRINTSCREEN = 44

          
const unsigned long DOM_VK_INSERT = 45

          
const unsigned long DOM_VK_DELETE = 46

          
const unsigned long DOM_VK_0 = 48

          
const unsigned long DOM_VK_1 = 49

          
const unsigned long DOM_VK_2 = 50

          
const unsigned long DOM_VK_3 = 51

          
const unsigned long DOM_VK_4 = 52

          
const unsigned long DOM_VK_5 = 53

          
const unsigned long DOM_VK_6 = 54

          
const unsigned long DOM_VK_7 = 55

          
const unsigned long DOM_VK_8 = 56

          
const unsigned long DOM_VK_9 = 57

          
const unsigned long DOM_VK_SEMICOLON = 59

          
const unsigned long DOM_VK_EQUALS = 61

          
const unsigned long DOM_VK_A = 65

          
const unsigned long DOM_VK_B = 66

          
const unsigned long DOM_VK_C = 67

          
const unsigned long DOM_VK_D = 68

          
const unsigned long DOM_VK_E = 69

          
const unsigned long DOM_VK_F = 70

          
const unsigned long DOM_VK_G = 71

          
const unsigned long DOM_VK_H = 72

          
const unsigned long DOM_VK_I = 73

          
const unsigned long DOM_VK_J = 74

          
const unsigned long DOM_VK_K = 75

          
const unsigned long DOM_VK_L = 76

          
const unsigned long DOM_VK_M = 77

          
const unsigned long DOM_VK_N = 78

          
const unsigned long DOM_VK_O = 79

          
const unsigned long DOM_VK_P = 80

          
const unsigned long DOM_VK_Q = 81

          
const unsigned long DOM_VK_R = 82

          
const unsigned long DOM_VK_S = 83

          
const unsigned long DOM_VK_T = 84

          
const unsigned long DOM_VK_U = 85

          
const unsigned long DOM_VK_V = 86

          
const unsigned long DOM_VK_W = 87

          
const unsigned long DOM_VK_X = 88

          
const unsigned long DOM_VK_Y = 89

          
const unsigned long DOM_VK_Z = 90

          
const unsigned long DOM_VK_CONTEXT_MENU = 93

          
const unsigned long DOM_VK_NUMPAD0 = 96

          
const unsigned long DOM_VK_NUMPAD1 = 97

          
const unsigned long DOM_VK_NUMPAD2 = 98

          
const unsigned long DOM_VK_NUMPAD3 = 99

          
const unsigned long DOM_VK_NUMPAD4 = 100

          
const unsigned long DOM_VK_NUMPAD5 = 101

          
const unsigned long DOM_VK_NUMPAD6 = 102

          
const unsigned long DOM_VK_NUMPAD7 = 103

          
const unsigned long DOM_VK_NUMPAD8 = 104

          
const unsigned long DOM_VK_NUMPAD9 = 105

          
const unsigned long DOM_VK_MULTIPLY = 106

          
const unsigned long DOM_VK_ADD = 107

          
const unsigned long DOM_VK_SEPARATOR = 108

          
const unsigned long DOM_VK_SUBTRACT = 109

          
const unsigned long DOM_VK_DECIMAL = 110

          
const unsigned long DOM_VK_DIVIDE = 111

          
const unsigned long DOM_VK_F1 = 112

          
const unsigned long DOM_VK_F2 = 113

          
const unsigned long DOM_VK_F3 = 114

          
const unsigned long DOM_VK_F4 = 115

          
const unsigned long DOM_VK_F5 = 116

          
const unsigned long DOM_VK_F6 = 117

          
const unsigned long DOM_VK_F7 = 118

          
const unsigned long DOM_VK_F8 = 119

          
const unsigned long DOM_VK_F9 = 120

          
const unsigned long DOM_VK_F10 = 121

          
const unsigned long DOM_VK_F11 = 122

          
const unsigned long DOM_VK_F12 = 123

          
const unsigned long DOM_VK_F13 = 124

          
const unsigned long DOM_VK_F14 = 125

          
const unsigned long DOM_VK_F15 = 126

          
const unsigned long DOM_VK_F16 = 127

          
const unsigned long DOM_VK_F17 = 128

          
const unsigned long DOM_VK_F18 = 129

          
const unsigned long DOM_VK_F19 = 130

          
const unsigned long DOM_VK_F20 = 131

          
const unsigned long DOM_VK_F21 = 132

          
const unsigned long DOM_VK_F22 = 133

          
const unsigned long DOM_VK_F23 = 134

          
const unsigned long DOM_VK_F24 = 135

          
const unsigned long DOM_VK_NUM_LOCK = 144

          
const unsigned long DOM_VK_SCROLL_LOCK = 145

          
const unsigned long DOM_VK_COMMA = 188

          
const unsigned long DOM_VK_PERIOD = 190

          
const unsigned long DOM_VK_SLASH = 191

          
const unsigned long DOM_VK_BACK_QUOTE = 192

          
const unsigned long DOM_VK_OPEN_BRACKET = 219

          
const unsigned long DOM_VK_BACK_SLASH = 220

          
const unsigned long DOM_VK_CLOSE_BRACKET = 221

          
const unsigned long DOM_VK_QUOTE = 222

          
const unsigned long DOM_VK_META = 224

Attributes


          
readonly attribute boolean altKey

          
readonly attribute unsigned long charCode

          
readonly attribute boolean ctrlKey

          
readonly attribute unsigned long keyCode

          
readonly attribute boolean metaKey

          
readonly attribute boolean shiftKey

Methods


          
void initKeyEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMAbstractView viewArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned long keyCodeArg, in unsigned long charCodeArg)