01 September, 2000

Appendix C: ECMA Script Language Binding

This appendix contains the complete ECMA Script [ECMAScript] binding for the Level 3 Document Object Model Events definitions.

Class KeyEvent
The KeyEvent class has the following constants:
KeyEvent.DOM_VK_UNDEFINED
This constant is of type int and its value is 0x0.
KeyEvent.DOM_VK_RIGHT_ALT
This constant is of type int and its value is 0x12.
KeyEvent.DOM_VK_LEFT_ALT
This constant is of type int and its value is 0x12.
KeyEvent.DOM_VK_LEFT_CONTROL
This constant is of type int and its value is 0x11.
KeyEvent.DOM_VK_RIGHT_CONTROL
This constant is of type int and its value is 0x11.
KeyEvent.DOM_VK_LEFT_SHIFT
This constant is of type int and its value is 0x10.
KeyEvent.DOM_VK_RIGHT_SHIFT
This constant is of type int and its value is 0x10.
KeyEvent.DOM_VK_META
This constant is of type int and its value is 0x9D.
KeyEvent.DOM_VK_BACK_SPACE
This constant is of type int and its value is 0x08.
KeyEvent.DOM_VK_CAPS_LOCK
This constant is of type int and its value is 0x14.
KeyEvent.DOM_VK_DELETE
This constant is of type int and its value is 0x7F.
KeyEvent.DOM_VK_END
This constant is of type int and its value is 0x23.
KeyEvent.DOM_VK_ENTER
This constant is of type int and its value is 0x0D.
KeyEvent.DOM_VK_ESCAPE
This constant is of type int and its value is 0x1B.
KeyEvent.DOM_VK_HOME
This constant is of type int and its value is 0x24.
KeyEvent.DOM_VK_NUM_LOCK
This constant is of type int and its value is 0x90.
KeyEvent.DOM_VK_PAUSE
This constant is of type int and its value is 0x13.
KeyEvent.DOM_VK_PRINTSCREEN
This constant is of type int and its value is 0x9A.
KeyEvent.DOM_VK_SCROLL_LOCK
This constant is of type int and its value is 0x91.
KeyEvent.DOM_VK_SPACE
This constant is of type int and its value is 0x20.
KeyEvent.DOM_VK_TAB
This constant is of type int and its value is 0x09.
KeyEvent.DOM_VK_LEFT
This constant is of type int and its value is 0x25.
KeyEvent.DOM_VK_RIGHT
This constant is of type int and its value is 0x27.
KeyEvent.DOM_VK_UP
This constant is of type int and its value is 0x26.
KeyEvent.DOM_VK_DOWN
This constant is of type int and its value is 0x28.
KeyEvent.DOM_VK_PAGE_DOWN
This constant is of type int and its value is 0x22.
KeyEvent.DOM_VK_PAGE_UP
This constant is of type int and its value is 0x21.
KeyEvent.DOM_VK_F1
This constant is of type int and its value is 0x70.
KeyEvent.DOM_VK_F2
This constant is of type int and its value is 0x71.
KeyEvent.DOM_VK_F3
This constant is of type int and its value is 0x72.
KeyEvent.DOM_VK_F4
This constant is of type int and its value is 0x73.
KeyEvent.DOM_VK_F5
This constant is of type int and its value is 0x74.
KeyEvent.DOM_VK_F6
This constant is of type int and its value is 0x75.
KeyEvent.DOM_VK_F7
This constant is of type int and its value is 0x76.
KeyEvent.DOM_VK_F8
This constant is of type int and its value is 0x77.
KeyEvent.DOM_VK_F9
This constant is of type int and its value is 0x78.
KeyEvent.DOM_VK_F10
This constant is of type int and its value is 0x79.
KeyEvent.DOM_VK_F11
This constant is of type int and its value is 0x7A.
KeyEvent.DOM_VK_F12
This constant is of type int and its value is 0x7B.
KeyEvent.DOM_VK_F13
This constant is of type int and its value is 0xF000.
KeyEvent.DOM_VK_F14
This constant is of type int and its value is 0xF001.
KeyEvent.DOM_VK_F15
This constant is of type int and its value is 0xF002.
KeyEvent.DOM_VK_F16
This constant is of type int and its value is 0xF003.
KeyEvent.DOM_VK_F17
This constant is of type int and its value is 0xF004.
KeyEvent.DOM_VK_F18
This constant is of type int and its value is 0xF005.
KeyEvent.DOM_VK_F19
This constant is of type int and its value is 0xF006.
KeyEvent.DOM_VK_F20
This constant is of type int and its value is 0xF007.
KeyEvent.DOM_VK_F21
This constant is of type int and its value is 0xF008.
KeyEvent.DOM_VK_F22
This constant is of type int and its value is 0xF009.
KeyEvent.DOM_VK_F23
This constant is of type int and its value is 0xF00A.
KeyEvent.DOM_VK_F24
This constant is of type int and its value is 0xF00B.
Object KeyEvent
KeyEvent has the all the properties and methods of UIEvent as well as the properties and methods defined below.
The KeyEvent object has the following properties:
outputString
This property is of type String.
keyVal
This property is of type int.
virtKeyVal
This property is of type int.
inputGenerated
This property is of type boolean.
numPad
This property is of type boolean.
The KeyEvent object has the following methods:
GetModifier(modifer)
This method returns a boolean.
The modifer parameter is of type int.
initKeyEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg, outputStringArg, keyValArg, virtKeyValArg, inputGeneratedArg, numPadArg)
This method has no return value.
The typeArg parameter is of type String.
The canBubbleArg parameter is of type boolean.
The cancelableArg parameter is of type boolean.
The viewArg parameter is of type AbstractView.
The detailArg parameter is of type short.
The outputStringArg parameter is of type String.
The keyValArg parameter is of type int.
The virtKeyValArg parameter is of type int.
The inputGeneratedArg parameter is of type boolean.
The numPadArg parameter is of type boolean.
Object EventGroup
Object EventTargetGroup
The EventTargetGroup object has the following methods:
addEventListener(type, listener, useCapture, eventGroup)
This method has no return value.
The type parameter is of type String.
The listener parameter is of type EventListener.
The useCapture parameter is of type boolean.
The eventGroup parameter is of type EventGroup.
removeEventListener(type, listener, useCapture, eventGroup)
This method has no return value.
The type parameter is of type String.
The listener parameter is of type EventListener.
The useCapture parameter is of type boolean.
The eventGroup parameter is of type EventGroup.
Object EventGrouped
The EventGrouped object has the following methods:
stopPropagation(eventGroup)
This method has no return value.
The eventGroup parameter is of type EventGroup.
Object DocumentEventGroup
The DocumentEventGroup object has the following methods:
createEventGroup()
This method returns a EventGroup.