Copyright ©2001 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This specification defines the Document Object Model Events Level 3, a platform- and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure and style of documents. The Document Object Model Events Level 3 builds on the Document Object Model Events Level 2.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C.
This is a W3C Working Draft for review by W3C members and other interested parties.
It is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress". This is work in progress and does not imply endorsement by, or the consensus of, either W3C or members of the DOM working group.
Comments on this document are invited and are to be sent to the public mailing list www-dom@w3.org. An archive is available at http://lists.w3.org/Archives/Public/www-dom/.
This document has been produced as part of the W3C DOM Activity. The authors of this document are the DOM WG members.
A list of current W3C Recommendations and other technical documents can be found at http://www.w3.org/TR.
Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
This document is published under the W3C Document Copyright Notice and License. The bindings within this document are published under the W3C Software Copyright Notice and License. The software license requires "Notice of any changes or modifications to the W3C files, including the date changes were made." Consequently, modified versions of the DOM bindings must document that they do not conform to the W3C standard; in the case of the IDL definitions, the pragma prefix can no longer be 'w3c.org'; in the case of the Java language binding, the package names can no longer be in the 'org.w3c' package.
Note: This section is a copy of the W3C Document Notice and License and could be found at http://www.w3.org/Consortium/Legal/copyright-documents-19990405.
Copyright © 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
http://www.w3.org/Consortium/Legal/
Public documents on the W3C site are provided by the copyright holders under the following license. The software or Document Type Definitions (DTDs) associated with W3C specifications are governed by the Software Notice. By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
Permission to use, copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
No right to create modifications or derivatives of W3C documents is granted pursuant to this license. However, if additional requirements (documented in the Copyright FAQ) are satisfied, the right to create modifications or derivatives is sometimes granted by the W3C to individuals complying with those requirements.
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.
Note: This section is a copy of the W3C Software Copyright Notice and License and could be found at http://www.w3.org/Consortium/Legal/copyright-software-19980720
Copyright © 1994-2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
http://www.w3.org/Consortium/Legal/
This W3C work (including software, documents, or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
Permission to use, copy, and modify this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make:
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
The goal of the DOM Level 3 Events specification is to expand upon the functionality specified in the DOM Level 2 Event Specification. The specification does this by adding new interfaces which are complimentary to the interfaces defined in the DOM Level 2 Event Specification as well as adding new event modules to those already defined.
This specification requires the previously designed interfaces in order to be functional. It is not designed to be standalone. These interfaces are not designed to supercede the interfaces already provided but instead to add to the functionality contained within them.
A DOM application may use the hasFeature(feature,
version)
method of the DOMImplementation
interface with parameter values "KeyEvents" and "3.0"
(respectively) to determine whether or not the Mouse event module
is supported by the implementation. In order to fully support this
module, an implementation must also support the "UIEvents" feature
defined in this specification. Please, refer to additional
information about conformance in the DOM Level 3 Core specification
.
Note: To create an instance of the KeyEvent
interface, use the feature string "KeyEvents" as the value of the
input parameter used with the createEvent
method of
the DocumentEvent
interface.
The KeyEvent
interface provides specific contextual
information associated with Key Events.
The detail
attribute inherited from
UIEvent
is used to indicated the number of keypresses
which have occurred during key repetition. If this information is
not available this value should be 0.
// Introduced in DOM Level 3: interface KeyEvent : UIEvent { // VirtualKeyCode const unsigned long DOM_VK_UNDEFINED = 0x0; const unsigned long DOM_VK_RIGHT_ALT = 0x01; const unsigned long DOM_VK_LEFT_ALT = 0x02; const unsigned long DOM_VK_LEFT_CONTROL = 0x03; const unsigned long DOM_VK_RIGHT_CONTROL = 0x04; const unsigned long DOM_VK_LEFT_SHIFT = 0x05; const unsigned long DOM_VK_RIGHT_SHIFT = 0x06; const unsigned long DOM_VK_LEFT_META = 0x07; const unsigned long DOM_VK_RIGHT_META = 0x08; const unsigned long DOM_VK_CAPS_LOCK = 0x09; const unsigned long DOM_VK_DELETE = 0x0A; const unsigned long DOM_VK_END = 0x0B; const unsigned long DOM_VK_ENTER = 0x0C; const unsigned long DOM_VK_ESCAPE = 0x0D; const unsigned long DOM_VK_HOME = 0x0E; const unsigned long DOM_VK_INSERT = 0x0F; const unsigned long DOM_VK_NUM_LOCK = 0x10; const unsigned long DOM_VK_PAUSE = 0x11; const unsigned long DOM_VK_PRINTSCREEN = 0x12; const unsigned long DOM_VK_SCROLL_LOCK = 0x13; const unsigned long DOM_VK_LEFT = 0x14; const unsigned long DOM_VK_RIGHT = 0x15; const unsigned long DOM_VK_UP = 0x16; const unsigned long DOM_VK_DOWN = 0x17; const unsigned long DOM_VK_PAGE_DOWN = 0x18; const unsigned long DOM_VK_PAGE_UP = 0x19; const unsigned long DOM_VK_F1 = 0x1A; const unsigned long DOM_VK_F2 = 0x1B; const unsigned long DOM_VK_F3 = 0x1C; const unsigned long DOM_VK_F4 = 0x1D; const unsigned long DOM_VK_F5 = 0x1E; const unsigned long DOM_VK_F6 = 0x1F; const unsigned long DOM_VK_F7 = 0x20; const unsigned long DOM_VK_F8 = 0x21; const unsigned long DOM_VK_F9 = 0x22; const unsigned long DOM_VK_F10 = 0x23; const unsigned long DOM_VK_F11 = 0x24; const unsigned long DOM_VK_F12 = 0x25; const unsigned long DOM_VK_F13 = 0x26; const unsigned long DOM_VK_F14 = 0x27; const unsigned long DOM_VK_F15 = 0x28; const unsigned long DOM_VK_F16 = 0x29; const unsigned long DOM_VK_F17 = 0x2A; const unsigned long DOM_VK_F18 = 0x2B; const unsigned long DOM_VK_F19 = 0x2C; const unsigned long DOM_VK_F20 = 0x2D; const unsigned long DOM_VK_F21 = 0x2E; const unsigned long DOM_VK_F22 = 0x2F; const unsigned long DOM_VK_F23 = 0x30; const unsigned long DOM_VK_F24 = 0x31; attribute DOMString outputString; attribute unsigned long keyVal; attribute unsigned long virtKeyVal; attribute boolean inputGenerated; attribute boolean numPad; boolean checkModifier(in unsigned long modifer); void initKeyEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in unsigned short detailArg, in DOMString outputStringArg, in unsigned long keyValArg, in unsigned long virtKeyValArg, in boolean inputGeneratedArg, in boolean numPadArg); void initModifier(in unsigned long modifier, in boolean value); };
An integer indicating which key was pressed.
DOM_VK_CAPS_LOCK
DOM_VK_DELETE
DOM_VK_DOWN
DOM_VK_END
DOM_VK_ENTER
DOM_VK_ESCAPE
DOM_VK_F1
DOM_VK_F10
DOM_VK_F11
DOM_VK_F12
DOM_VK_F13
DOM_VK_F14
DOM_VK_F15
DOM_VK_F16
DOM_VK_F17
DOM_VK_F18
DOM_VK_F19
DOM_VK_F2
DOM_VK_F20
DOM_VK_F21
DOM_VK_F22
DOM_VK_F23
DOM_VK_F24
DOM_VK_F3
DOM_VK_F4
DOM_VK_F5
DOM_VK_F6
DOM_VK_F7
DOM_VK_F8
DOM_VK_F9
DOM_VK_HOME
DOM_VK_INSERT
DOM_VK_LEFT
DOM_VK_LEFT_ALT
DOM_VK_LEFT_CONTROL
DOM_VK_LEFT_META
DOM_VK_LEFT_SHIFT
DOM_VK_NUM_LOCK
DOM_VK_PAGE_DOWN
DOM_VK_PAGE_UP
DOM_VK_PAUSE
DOM_VK_PRINTSCREEN
DOM_VK_RIGHT
DOM_VK_RIGHT_ALT
DOM_VK_RIGHT_CONTROL
DOM_VK_RIGHT_META
DOM_VK_RIGHT_SHIFT
DOM_VK_SCROLL_LOCK
DOM_VK_UNDEFINED
DOM_VK_UP
inputGenerated
of
type boolean
inputGenerated
attribute indicates whether the
key event will normally cause visible output. If the key event does
not generate any visible output, such as the use of a function key
or the combination of certain modifier keys used in conjunction
with another key, then the value will be false. If visible output
is normally generated by the key event then the value will be
true.inputGenerated
does not guarantee the
creation of a character. If a key event causing visible output is
cancelable it may be prevented from causing output. This attribute
is intended primarily to differentiate between keys events which
may or may not produce visible output depending on the system
state.keyVal
of type
unsigned long
keyVal
holds the value of the Unicode
character associated with the depressed key. If the key has no
Unicode representation or no Unicode character is available the
value is 0..numPad
of type
boolean
numPad
attribute indicates whether or not the
key event was generated on the number pad section of the keyboard.
If the number pad was used to generate the key event the value is
true, otherwise the value is false.outputString
of type
DOMString
outputString
holds the value of the output
generated by the key event. This may be a single Unicode character
or it may be a string. It may also be null in the case where no
output was generated by the key event.virtKeyVal
of type
unsigned long
virtKeyVale
holds the virtual
key code associated with the depressed key. If the key has a
Unicode representation or no virtual code is available the value is
DOM_VK_UNDEFINED
.checkModifier
CheckModifier
method is used
to check the status of a single modifier key associated with a
KeyEvent
. The identifier of the modifier in question
is passed into the CheckModifier
function. If the
modifier is triggered it will return true. If not, it will return
false.modifer
of type
unsigned long
|
The status of the modifier represented as a boolean. |
initKeyEvent
initKeyEvent
method is used to
initialize the value of a MouseEvent
created through
the DocumentEvent
interface. This method may only be
called before the KeyEvent
has been dispatched via the
dispatchEvent method, though it may be called multiple times during
that phase if necessary. If called multiple times, the final
invocation takes precedence. This method has no effect if called
after the event has been dispatched.
typeArg
of type
DOMString
canBubbleArg
of type
boolean
cancelableArg
of type
boolean
viewArg
of type
views::AbstractView
KeyEvent
's
AbstractView
.detailArg
of type
unsigned short
outputStringArg
of type
DOMString
KeyEvent
's outputString
attributekeyValArg
of type
unsigned long
KeyEvent
's
keyVal
attributevirtKeyValArg
of type
unsigned long
KeyEvent
's
virtKeyVal
attributeinputGeneratedArg
of type
boolean
KeyEvent
's
inputGenerated
attributenumPadArg
of type
boolean
KeyEvent
's
numPad
attributeinitModifier
initModifier
method is used to
initialize the values of any modifiers associated with a
KeyEvent
created through the
DocumentEvent
interface. This method may only be
called before the KeyEvent
has been dispatched via the
dispatchEvent method, though it may be called multiple times during
that phase if necessary. If called multiple times with the same
modifier
property the final invocation takes
precedence. Unless explicitly give a value of true, all modifiers
have a value of false. This method has no effect if called after
the event has been dispatched.modifier
of type
unsigned long
value
of type
boolean
There are two major groups of key events. The first contains the
textEvent
event. The textEvent
event
indicates that text information has been entered, either in the
form of printable characters or non-printable text information such
as modifier keys. textEvent
events are not necessarily
accompanied by the events of the second major groups of key events,
keydown
and keyup
.
The keydown
and keyup
events comprise
the second group of key events. These events are fired to indicate
the physical motion of the keys on the character generation device.
Depending on the input system being used, textEvent
events may or may not be generated for each pair of
keydown
and keyup
events.
EventListener grouping is intended to allow groups of
EventListener
s to be registered which will each have
independent event flow within them which is not affected by changes
to event flow in any other group. This may be used to control
events separately in multiple views on a document. It may also be
used to develop an application which uses events without the
problem of possible interference by other applications running
within the same document.
The new interfaces added for EventListener grouping should not
interfere with the interfaces established in the Level 2 DOM. For
purposes of interoperability between the Level 2 DOM Event Model
and the new interfaces added in Level 3 the implementation can be
assumed to define a default EventGroup
.
This EventGroup
is
implicitly used in the registration of all
EventListener
s registered via the Level 2 DOM Event
Model methods which do not specify an EventGroup
.
The EventGroup interface functions primarily as a placeholder for separating the event flows when there are multiple groups of listeners for a DOM tree.
EventListener
s can be registered without an
EventGroup
using the existing EventTarget
interface, or with an associated EventGroup
using the
new EventTargetGroup
interface. When an event is dispatched, it is dispatched
independently to each EventGroup
. In particular, the
stopPropagation
method of the Event
interface only stops propagation within an
EventListener
's associated
EventGroup
.
interface EventGroup { boolean isSameEventGroup(in EventGroup eventGroup); };
isSameEventGroup
EventGroup
is the same as the EventGroup
upon which the method is called.
eventGroup
of type EventGroup
EventGroup
with which to check equality.
|
Returns true if the |
The EventTargetGroup interface is implemented by the same set of
objects that implement the EventTarget
interface,
namely all EventTarget
s in in implementation which
supports the Event model and the EventGroup extension.
interface EventTargetGroup { void addEventListener(in DOMString type, in EventListener listener, in boolean useCapture, in EventGroup eventGroup); void removeEventListener(in DOMString type, in EventListener listener, in boolean useCapture, in EventGroup eventGroup); };
addEventListener
addEventListener
method of the
EventTarget
interface, with the exception of the added
eventGroup
parameter. The listener is registered with
this EventGroup
associated.
type
of type
DOMString
listener
of type
EventListener
useCapture
of type
boolean
eventGroup
of type EventGroup
EventGroup
to
associate with the listener.removeEventListener
removeEventListener
method of the
EventTarget
interface, with the exception of the added
eventGroup
parameter. The listener registered with
this EventGroup
associated is removed.
type
of type
DOMString
listener
of type
EventListener
useCapture
of type
boolean
eventGroup
of type EventGroup
EventGroup
to
associate with the listener.The DocumentEventGroup
interface provides a
mechanism by which the user can create an EventGroup
of
a type supported by the implementation. It is expected that the
DocumentEvent
interface will be implemented on the
same object which implements the Document
interface in
an implementation which supports the EventGroup
extension.
interface DocumentEventGroup { EventGroup createEventGroup(); };
createEventGroup
The newly created |
This appendix contains the complete OMG IDL [OMGIDL] for the Level 3 Document Object Model Events definitions.
The IDL files are also available as: http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-20010410/idl.zip
// File: events.idl #ifndef _EVENTS_IDL_ #define _EVENTS_IDL_ #include "dom.idl" #include "views.idl" #pragma prefix "dom.w3c.org" module events { typedef dom::DOMString DOMString; typedef dom::EventListener EventListener; typedef dom::UIEvent UIEvent; interface EventGroup { boolean isSameEventGroup(in EventGroup eventGroup); }; interface EventTargetGroup { void addEventListener(in DOMString type, in EventListener listener, in boolean useCapture, in EventGroup eventGroup); void removeEventListener(in DOMString type, in EventListener listener, in boolean useCapture, in EventGroup eventGroup); }; interface DocumentEventGroup { EventGroup createEventGroup(); }; // Introduced in DOM Level 3: interface KeyEvent : UIEvent { // VirtualKeyCode const unsigned long DOM_VK_UNDEFINED = 0x0; const unsigned long DOM_VK_RIGHT_ALT = 0x01; const unsigned long DOM_VK_LEFT_ALT = 0x02; const unsigned long DOM_VK_LEFT_CONTROL = 0x03; const unsigned long DOM_VK_RIGHT_CONTROL = 0x04; const unsigned long DOM_VK_LEFT_SHIFT = 0x05; const unsigned long DOM_VK_RIGHT_SHIFT = 0x06; const unsigned long DOM_VK_LEFT_META = 0x07; const unsigned long DOM_VK_RIGHT_META = 0x08; const unsigned long DOM_VK_CAPS_LOCK = 0x09; const unsigned long DOM_VK_DELETE = 0x0A; const unsigned long DOM_VK_END = 0x0B; const unsigned long DOM_VK_ENTER = 0x0C; const unsigned long DOM_VK_ESCAPE = 0x0D; const unsigned long DOM_VK_HOME = 0x0E; const unsigned long DOM_VK_INSERT = 0x0F; const unsigned long DOM_VK_NUM_LOCK = 0x10; const unsigned long DOM_VK_PAUSE = 0x11; const unsigned long DOM_VK_PRINTSCREEN = 0x12; const unsigned long DOM_VK_SCROLL_LOCK = 0x13; const unsigned long DOM_VK_LEFT = 0x14; const unsigned long DOM_VK_RIGHT = 0x15; const unsigned long DOM_VK_UP = 0x16; const unsigned long DOM_VK_DOWN = 0x17; const unsigned long DOM_VK_PAGE_DOWN = 0x18; const unsigned long DOM_VK_PAGE_UP = 0x19; const unsigned long DOM_VK_F1 = 0x1A; const unsigned long DOM_VK_F2 = 0x1B; const unsigned long DOM_VK_F3 = 0x1C; const unsigned long DOM_VK_F4 = 0x1D; const unsigned long DOM_VK_F5 = 0x1E; const unsigned long DOM_VK_F6 = 0x1F; const unsigned long DOM_VK_F7 = 0x20; const unsigned long DOM_VK_F8 = 0x21; const unsigned long DOM_VK_F9 = 0x22; const unsigned long DOM_VK_F10 = 0x23; const unsigned long DOM_VK_F11 = 0x24; const unsigned long DOM_VK_F12 = 0x25; const unsigned long DOM_VK_F13 = 0x26; const unsigned long DOM_VK_F14 = 0x27; const unsigned long DOM_VK_F15 = 0x28; const unsigned long DOM_VK_F16 = 0x29; const unsigned long DOM_VK_F17 = 0x2A; const unsigned long DOM_VK_F18 = 0x2B; const unsigned long DOM_VK_F19 = 0x2C; const unsigned long DOM_VK_F20 = 0x2D; const unsigned long DOM_VK_F21 = 0x2E; const unsigned long DOM_VK_F22 = 0x2F; const unsigned long DOM_VK_F23 = 0x30; const unsigned long DOM_VK_F24 = 0x31; attribute DOMString outputString; attribute unsigned long keyVal; attribute unsigned long virtKeyVal; attribute boolean inputGenerated; attribute boolean numPad; boolean checkModifier(in unsigned long modifer); void initKeyEvent(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in views::AbstractView viewArg, in unsigned short detailArg, in DOMString outputStringArg, in unsigned long keyValArg, in unsigned long virtKeyValArg, in boolean inputGeneratedArg, in boolean numPadArg); void initModifier(in unsigned long modifier, in boolean value); }; }; #endif // _EVENTS_IDL_
This appendix contains the complete Java [Java] bindings for the Level 3 Document Object Model Events.
The Java files are also available as http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-20010410/java-binding.zip
package org.w3c.dom.events; import org.w3c.dom.views.AbstractView; import org.w3c.dom.UIEvent; public interface KeyEvent extends UIEvent { // VirtualKeyCode public static final int DOM_VK_UNDEFINED = 0x0; public static final int DOM_VK_RIGHT_ALT = 0x01; public static final int DOM_VK_LEFT_ALT = 0x02; public static final int DOM_VK_LEFT_CONTROL = 0x03; public static final int DOM_VK_RIGHT_CONTROL = 0x04; public static final int DOM_VK_LEFT_SHIFT = 0x05; public static final int DOM_VK_RIGHT_SHIFT = 0x06; public static final int DOM_VK_LEFT_META = 0x07; public static final int DOM_VK_RIGHT_META = 0x08; public static final int DOM_VK_CAPS_LOCK = 0x09; public static final int DOM_VK_DELETE = 0x0A; public static final int DOM_VK_END = 0x0B; public static final int DOM_VK_ENTER = 0x0C; public static final int DOM_VK_ESCAPE = 0x0D; public static final int DOM_VK_HOME = 0x0E; public static final int DOM_VK_INSERT = 0x0F; public static final int DOM_VK_NUM_LOCK = 0x10; public static final int DOM_VK_PAUSE = 0x11; public static final int DOM_VK_PRINTSCREEN = 0x12; public static final int DOM_VK_SCROLL_LOCK = 0x13; public static final int DOM_VK_LEFT = 0x14; public static final int DOM_VK_RIGHT = 0x15; public static final int DOM_VK_UP = 0x16; public static final int DOM_VK_DOWN = 0x17; public static final int DOM_VK_PAGE_DOWN = 0x18; public static final int DOM_VK_PAGE_UP = 0x19; public static final int DOM_VK_F1 = 0x1A; public static final int DOM_VK_F2 = 0x1B; public static final int DOM_VK_F3 = 0x1C; public static final int DOM_VK_F4 = 0x1D; public static final int DOM_VK_F5 = 0x1E; public static final int DOM_VK_F6 = 0x1F; public static final int DOM_VK_F7 = 0x20; public static final int DOM_VK_F8 = 0x21; public static final int DOM_VK_F9 = 0x22; public static final int DOM_VK_F10 = 0x23; public static final int DOM_VK_F11 = 0x24; public static final int DOM_VK_F12 = 0x25; public static final int DOM_VK_F13 = 0x26; public static final int DOM_VK_F14 = 0x27; public static final int DOM_VK_F15 = 0x28; public static final int DOM_VK_F16 = 0x29; public static final int DOM_VK_F17 = 0x2A; public static final int DOM_VK_F18 = 0x2B; public static final int DOM_VK_F19 = 0x2C; public static final int DOM_VK_F20 = 0x2D; public static final int DOM_VK_F21 = 0x2E; public static final int DOM_VK_F22 = 0x2F; public static final int DOM_VK_F23 = 0x30; public static final int DOM_VK_F24 = 0x31; public String getOutputString(); public void setOutputString(String outputString); public int getKeyVal(); public void setKeyVal(int keyVal); public int getVirtKeyVal(); public void setVirtKeyVal(int virtKeyVal); public boolean getInputGenerated(); public void setInputGenerated(boolean inputGenerated); public boolean getNumPad(); public void setNumPad(boolean numPad); public boolean checkModifier(int modifer); public void initKeyEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, short detailArg, String outputStringArg, int keyValArg, int virtKeyValArg, boolean inputGeneratedArg, boolean numPadArg); public void initModifier(int modifier, boolean value); }
package org.w3c.dom.events; public interface EventGroup { public boolean isSameEventGroup(EventGroup eventGroup); }
package org.w3c.dom.events; import org.w3c.dom.EventListener; public interface EventTargetGroup { public void addEventListener(String type, EventListener listener, boolean useCapture, EventGroup eventGroup); public void removeEventListener(String type, EventListener listener, boolean useCapture, EventGroup eventGroup); }
package org.w3c.dom.events; public interface DocumentEventGroup { public EventGroup createEventGroup(); }
This appendix contains the complete ECMA Script [ECMAScript] binding for the Level 3 Document Object Model Events definitions.
For the latest version of any W3C specification please consult the list of W3C Technical Reports available at http://www.w3.org/TR.