| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <TITLE> |
| KeyboardEvent (Apache Batik Javadoc) |
| </TITLE> |
| |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="KeyboardEvent (Apache Batik Javadoc)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/KeyboardEvent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/w3c/dom/events/EventTarget.html" title="interface in org.w3c.dom.events"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/w3c/dom/events/MouseEvent.html" title="interface in org.w3c.dom.events"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/w3c/dom/events/KeyboardEvent.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="KeyboardEvent.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.w3c.dom.events</FONT> |
| <BR> |
| Interface KeyboardEvent</H2> |
| <DL> |
| <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../org/w3c/dom/events/Event.html" title="interface in org.w3c.dom.events">Event</A>, <A HREF="../../../../org/w3c/dom/events/UIEvent.html" title="interface in org.w3c.dom.events">UIEvent</A></DD> |
| </DL> |
| <DL> |
| <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/batik/dom/events/DOMKeyboardEvent.html" title="class in org.apache.batik.dom.events">DOMKeyboardEvent</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public interface <B>KeyboardEvent</B><DT>extends <A HREF="../../../../org/w3c/dom/events/UIEvent.html" title="interface in org.w3c.dom.events">UIEvent</A></DL> |
| </PRE> |
| |
| <P> |
| The <code>KeyboardEvent</code> interface provides specific contextual |
| information associated with keyboard devices. Each keyboard event |
| references a key using an identifier. Keyboard events are commonly |
| directed at the element that has the focus. |
| <p> The <code>KeyboardEvent</code> interface provides convenient attributes |
| for some common modifiers keys: <code>KeyboardEvent.ctrlKey</code>, |
| <code>KeyboardEvent.shiftKey</code>, <code>KeyboardEvent.altKey</code>, |
| <code>KeyboardEvent.metaKey</code>. These attributes are equivalent to |
| use the method |
| <code>KeyboardEvent.getModifierState(keyIdentifierArg)</code> with |
| "Control", "Shift", "Alt", or "Meta" respectively. |
| <p> To create an instance of the <code>KeyboardEvent</code> interface, use |
| the <code>DocumentEvent.createEvent("KeyboardEvent")</code> method call. |
| <p>See also the <a href='http://www.w3.org/TR/2006/WD-DOM-Level-3-Events-20060413'> |
| Document Object Model (DOM) Level 3 Events Specification |
| </a>. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>DOM Level 3</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#DOM_KEY_LOCATION_LEFT">DOM_KEY_LOCATION_LEFT</A></B></CODE> |
| |
| <BR> |
| The key activated is in the left key location (there is more than one |
| possible location for this key).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#DOM_KEY_LOCATION_NUMPAD">DOM_KEY_LOCATION_NUMPAD</A></B></CODE> |
| |
| <BR> |
| The key activation originated on the numeric keypad or with a virtual |
| key corresponding to the numeric keypad.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#DOM_KEY_LOCATION_RIGHT">DOM_KEY_LOCATION_RIGHT</A></B></CODE> |
| |
| <BR> |
| The key activation is in the right key location (there is more than |
| one possible location for this key).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#DOM_KEY_LOCATION_STANDARD">DOM_KEY_LOCATION_STANDARD</A></B></CODE> |
| |
| <BR> |
| The key activation is not distinguished as the left or right version |
| of the key, and did not originate from the numeric keypad (or did not |
| originate with a virtual key corresponding to the numeric keypad).</TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.w3c.dom.events.Event"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from interface org.w3c.dom.events.<A HREF="../../../../org/w3c/dom/events/Event.html" title="interface in org.w3c.dom.events">Event</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/w3c/dom/events/Event.html#AT_TARGET">AT_TARGET</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#BUBBLING_PHASE">BUBBLING_PHASE</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#CAPTURING_PHASE">CAPTURING_PHASE</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getAltKey()">getAltKey</A></B>()</CODE> |
| |
| <BR> |
| <code>true</code> if the alternative (Alt) key modifier is activated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getCtrlKey()">getCtrlKey</A></B>()</CODE> |
| |
| <BR> |
| <code>true</code> if the control (Ctrl) key modifier is activated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getKeyIdentifier()">getKeyIdentifier</A></B>()</CODE> |
| |
| <BR> |
| <code>keyIdentifier</code> holds the identifier of the key.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getKeyLocation()">getKeyLocation</A></B>()</CODE> |
| |
| <BR> |
| The <code>keyLocation</code> attribute contains an indication of the |
| location of they key on the device, as described in .</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getMetaKey()">getMetaKey</A></B>()</CODE> |
| |
| <BR> |
| <code>true</code> if the meta (Meta) key modifier is activated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getModifierState(java.lang.String)">getModifierState</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg)</CODE> |
| |
| <BR> |
| This methods queries the state of a modifier using a key identifier.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#getShiftKey()">getShiftKey</A></B>()</CODE> |
| |
| <BR> |
| <code>true</code> if the shift (Shift) key modifier is activated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#initKeyboardEvent(java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, java.lang.String, int, java.lang.String)">initKeyboardEvent</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> typeArg, |
| boolean canBubbleArg, |
| boolean cancelableArg, |
| <A HREF="http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/views/AbstractView.html?is-external=true" title="class or interface in org.w3c.dom.views">AbstractView</A> viewArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg, |
| int keyLocationArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> modifiersList)</CODE> |
| |
| <BR> |
| The <code>initKeyboardEvent</code> method is used to initialize the |
| value of a <code>KeyboardEvent</code> object and has the same |
| behavior as <code>UIEvent.initUIEvent()</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/w3c/dom/events/KeyboardEvent.html#initKeyboardEventNS(java.lang.String, java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, java.lang.String, int, java.lang.String)">initKeyboardEventNS</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> namespaceURI, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> typeArg, |
| boolean canBubbleArg, |
| boolean cancelableArg, |
| <A HREF="http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/views/AbstractView.html?is-external=true" title="class or interface in org.w3c.dom.views">AbstractView</A> viewArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg, |
| int keyLocationArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> modifiersList)</CODE> |
| |
| <BR> |
| The <code>initKeyboardEventNS</code> method is used to initialize the |
| value of a <code>KeyboardEvent</code> object and has the same |
| behavior as <code>UIEvent.initUIEventNS()</code>.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.w3c.dom.events.UIEvent"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from interface org.w3c.dom.events.<A HREF="../../../../org/w3c/dom/events/UIEvent.html" title="interface in org.w3c.dom.events">UIEvent</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/w3c/dom/events/UIEvent.html#getDetail()">getDetail</A>, <A HREF="../../../../org/w3c/dom/events/UIEvent.html#getView()">getView</A>, <A HREF="../../../../org/w3c/dom/events/UIEvent.html#initUIEvent(java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, int)">initUIEvent</A>, <A HREF="../../../../org/w3c/dom/events/UIEvent.html#initUIEventNS(java.lang.String, java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, int)">initUIEventNS</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.w3c.dom.events.Event"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from interface org.w3c.dom.events.<A HREF="../../../../org/w3c/dom/events/Event.html" title="interface in org.w3c.dom.events">Event</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/w3c/dom/events/Event.html#getBubbles()">getBubbles</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getCancelable()">getCancelable</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getCurrentTarget()">getCurrentTarget</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getDefaultPrevented()">getDefaultPrevented</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getEventPhase()">getEventPhase</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getNamespaceURI()">getNamespaceURI</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getTarget()">getTarget</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getTimeStamp()">getTimeStamp</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#getType()">getType</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#initEvent(java.lang.String, boolean, boolean)">initEvent</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#initEventNS(java.lang.String, java.lang.String, boolean, boolean)">initEventNS</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#preventDefault()">preventDefault</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#stopImmediatePropagation()">stopImmediatePropagation</A>, <A HREF="../../../../org/w3c/dom/events/Event.html#stopPropagation()">stopPropagation</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="DOM_KEY_LOCATION_STANDARD"><!-- --></A><H3> |
| DOM_KEY_LOCATION_STANDARD</H3> |
| <PRE> |
| static final int <B>DOM_KEY_LOCATION_STANDARD</B></PRE> |
| <DL> |
| <DD>The key activation is not distinguished as the left or right version |
| of the key, and did not originate from the numeric keypad (or did not |
| originate with a virtual key corresponding to the numeric keypad). |
| Example: the 'Q' key on a PC 101 Key US keyboard. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.dom.events.KeyboardEvent.DOM_KEY_LOCATION_STANDARD">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DOM_KEY_LOCATION_LEFT"><!-- --></A><H3> |
| DOM_KEY_LOCATION_LEFT</H3> |
| <PRE> |
| static final int <B>DOM_KEY_LOCATION_LEFT</B></PRE> |
| <DL> |
| <DD>The key activated is in the left key location (there is more than one |
| possible location for this key). Example: the left Shift key on a PC |
| 101 Key US keyboard. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.dom.events.KeyboardEvent.DOM_KEY_LOCATION_LEFT">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DOM_KEY_LOCATION_RIGHT"><!-- --></A><H3> |
| DOM_KEY_LOCATION_RIGHT</H3> |
| <PRE> |
| static final int <B>DOM_KEY_LOCATION_RIGHT</B></PRE> |
| <DL> |
| <DD>The key activation is in the right key location (there is more than |
| one possible location for this key). Example: the right Shift key on |
| a PC 101 Key US keyboard. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.dom.events.KeyboardEvent.DOM_KEY_LOCATION_RIGHT">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DOM_KEY_LOCATION_NUMPAD"><!-- --></A><H3> |
| DOM_KEY_LOCATION_NUMPAD</H3> |
| <PRE> |
| static final int <B>DOM_KEY_LOCATION_NUMPAD</B></PRE> |
| <DL> |
| <DD>The key activation originated on the numeric keypad or with a virtual |
| key corresponding to the numeric keypad. Example: the '1' key on a PC |
| 101 Key US keyboard located on the numeric pad. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.w3c.dom.events.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD">Constant Field Values</A></DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getKeyIdentifier()"><!-- --></A><H3> |
| getKeyIdentifier</H3> |
| <PRE> |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getKeyIdentifier</B>()</PRE> |
| <DL> |
| <DD><code>keyIdentifier</code> holds the identifier of the key. The key |
| identifiers are defined in Appendix A.2 "". Implementations that are |
| unable to identify a key must use the key identifier |
| <code>"Unidentified"</code>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getKeyLocation()"><!-- --></A><H3> |
| getKeyLocation</H3> |
| <PRE> |
| int <B>getKeyLocation</B>()</PRE> |
| <DL> |
| <DD>The <code>keyLocation</code> attribute contains an indication of the |
| location of they key on the device, as described in . |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCtrlKey()"><!-- --></A><H3> |
| getCtrlKey</H3> |
| <PRE> |
| boolean <B>getCtrlKey</B>()</PRE> |
| <DL> |
| <DD><code>true</code> if the control (Ctrl) key modifier is activated. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getShiftKey()"><!-- --></A><H3> |
| getShiftKey</H3> |
| <PRE> |
| boolean <B>getShiftKey</B>()</PRE> |
| <DL> |
| <DD><code>true</code> if the shift (Shift) key modifier is activated. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getAltKey()"><!-- --></A><H3> |
| getAltKey</H3> |
| <PRE> |
| boolean <B>getAltKey</B>()</PRE> |
| <DL> |
| <DD><code>true</code> if the alternative (Alt) key modifier is activated. |
| <p ><b>Note:</b> The Option key modifier on Macintosh systems must be |
| represented using this key modifier. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMetaKey()"><!-- --></A><H3> |
| getMetaKey</H3> |
| <PRE> |
| boolean <B>getMetaKey</B>()</PRE> |
| <DL> |
| <DD><code>true</code> if the meta (Meta) key modifier is activated. |
| <p ><b>Note:</b> The Command key modifier on Macintosh systems must be |
| represented using this key modifier. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getModifierState(java.lang.String)"><!-- --></A><H3> |
| getModifierState</H3> |
| <PRE> |
| boolean <B>getModifierState</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg)</PRE> |
| <DL> |
| <DD>This methods queries the state of a modifier using a key identifier. |
| See also . |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>keyIdentifierArg</CODE> - A modifier key identifier. Common modifier |
| keys are <code>"Alt"</code>, <code>"AltGraph"</code>, |
| <code>"CapsLock"</code>, <code>"Control"</code>, <code>"Meta"</code> |
| , <code>"NumLock"</code>, <code>"Scroll"</code>, or |
| <code>"Shift"</code>. |
| <p ><b>Note:</b> If an application wishes to distinguish between |
| right and left modifiers, this information could be deduced using |
| keyboard events and <code>KeyboardEvent.keyLocation</code>. |
| <DT><B>Returns:</B><DD><code>true</code> if it is modifier key and the modifier is |
| activated, <code>false</code> otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initKeyboardEvent(java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, java.lang.String, int, java.lang.String)"><!-- --></A><H3> |
| initKeyboardEvent</H3> |
| <PRE> |
| void <B>initKeyboardEvent</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> typeArg, |
| boolean canBubbleArg, |
| boolean cancelableArg, |
| <A HREF="http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/views/AbstractView.html?is-external=true" title="class or interface in org.w3c.dom.views">AbstractView</A> viewArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg, |
| int keyLocationArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> modifiersList)</PRE> |
| <DL> |
| <DD>The <code>initKeyboardEvent</code> method is used to initialize the |
| value of a <code>KeyboardEvent</code> object and has the same |
| behavior as <code>UIEvent.initUIEvent()</code>. The value of |
| <code>UIEvent.detail</code> remains undefined. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>typeArg</CODE> - Refer to the <code>UIEvent.initUIEvent()</code> method |
| for a description of this parameter.<DD><CODE>canBubbleArg</CODE> - Refer to the <code>UIEvent.initUIEvent()</code> |
| method for a description of this parameter.<DD><CODE>cancelableArg</CODE> - Refer to the <code>UIEvent.initUIEvent()</code> |
| method for a description of this parameter.<DD><CODE>viewArg</CODE> - Refer to the <code>UIEvent.initUIEvent()</code> method |
| for a description of this parameter.<DD><CODE>keyIdentifierArg</CODE> - Specifies |
| <code>KeyboardEvent.keyIdentifier</code>.<DD><CODE>keyLocationArg</CODE> - Specifies <code>KeyboardEvent.keyLocation</code> |
| .<DD><CODE>modifiersList</CODE> - A <a href='http://www.w3.org/TR/2004/REC-xml-20040204/#NT-S'>white space</a> separated list of modifier key identifiers to be activated on this |
| object.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initKeyboardEventNS(java.lang.String, java.lang.String, boolean, boolean, org.w3c.dom.views.AbstractView, java.lang.String, int, java.lang.String)"><!-- --></A><H3> |
| initKeyboardEventNS</H3> |
| <PRE> |
| void <B>initKeyboardEventNS</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> namespaceURI, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> typeArg, |
| boolean canBubbleArg, |
| boolean cancelableArg, |
| <A HREF="http://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/views/AbstractView.html?is-external=true" title="class or interface in org.w3c.dom.views">AbstractView</A> viewArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> keyIdentifierArg, |
| int keyLocationArg, |
| <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> modifiersList)</PRE> |
| <DL> |
| <DD>The <code>initKeyboardEventNS</code> method is used to initialize the |
| value of a <code>KeyboardEvent</code> object and has the same |
| behavior as <code>UIEvent.initUIEventNS()</code>. The value of |
| <code>UIEvent.detail</code> remains undefined. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - Refer to the <code>UIEvent.initUIEventNS()</code> |
| method for a description of this parameter.<DD><CODE>typeArg</CODE> - Refer to the <code>UIEvent.initUIEventNS()</code> |
| method for a description of this parameter.<DD><CODE>canBubbleArg</CODE> - Refer to the <code>UIEvent.initUIEventNS()</code> |
| method for a description of this parameter.<DD><CODE>cancelableArg</CODE> - Refer to the <code>UIEvent.initUIEventNS()</code> |
| method for a description of this parameter.<DD><CODE>viewArg</CODE> - Refer to the <code>UIEvent.initUIEventNS()</code> |
| method for a description of this parameter.<DD><CODE>keyIdentifierArg</CODE> - Refer to the |
| <code>KeyboardEvent.initKeyboardEvent()</code> method for a |
| description of this parameter.<DD><CODE>keyLocationArg</CODE> - Refer to the |
| <code>KeyboardEvent.initKeyboardEvent()</code> method for a |
| description of this parameter.<DD><CODE>modifiersList</CODE> - A <a href='http://www.w3.org/TR/2004/REC-xml-20040204/#NT-S'>white space</a> separated list of modifier key identifiers to be activated on this |
| object. As an example, <code>"Control Alt"</code> will activated |
| the control and alt modifiers.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/KeyboardEvent.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/w3c/dom/events/EventTarget.html" title="interface in org.w3c.dom.events"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/w3c/dom/events/MouseEvent.html" title="interface in org.w3c.dom.events"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/w3c/dom/events/KeyboardEvent.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="KeyboardEvent.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2017 <a href='http://www.apache.org/'>Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |