
public class JsKeyboardEvent extends JsUIEvent implements KeyboardEvent
KeyboardEvent.KeyCode, KeyboardEvent.KeyLocation, KeyboardEvent.KeyNameAT_TARGET, BEFORECOPY, BEFORECUT, BEFOREPASTE, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTEXTMENU, COPY, CUT, DBLCLICK, DRAG, DRAGEND, DRAGENTER, DRAGLEAVE, DRAGOVER, DRAGSTART, DROP, ERROR, FOCUS, FOCUSIN, FOCUSOUT, INPUT, INVALID, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, NONE, PASTE, RESIZE, SCROLL, SELECTSTART, SUBMIT, TOUCHCANCEL, TOUCHEND, TOUCHMOVE, TOUCHSTART, WEBKITANIMATIONEND, WEBKITANIMATIONITERATION, WEBKITANIMATIONSTART, WEBKITTRANSITIONENDSVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsKeyboardEvent() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyIdentifier() |
int |
getKeyLocation() |
void |
initKeyboardEvent(String type,
boolean canBubble,
boolean cancelable,
Window view,
String keyIdentifier,
int keyLocation,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
boolean altGraphKey)
Initializes the attributes of a keyboard event object.
|
boolean |
isAltGraphKey() |
boolean |
isAltKey()
true if the Alt (or Option, on Mac) key was active when the key event was generated. |
boolean |
isCtrlKey()
true if the Control key was active when the key event was generated. |
boolean |
isMetaKey()
true if the Meta (or Command, on Mac) key was active when the key event was generated. |
boolean |
isShiftKey()
true if the Shift key was active when the key event was generated. |
getCharCode, getDetail, getKeyCode, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEventgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationaddEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringgetKeyCodegetCharCode, getDetail, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEventgetClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagationintAt, lengthnumberAtpublic final boolean isAltGraphKey()
isAltGraphKey in interface KeyboardEventpublic final boolean isAltKey()
KeyboardEventtrue if the Alt (or Option, on Mac) key was active when the key event was generated. Read only.isAltKey in interface KeyboardEventpublic final boolean isCtrlKey()
KeyboardEventtrue if the Control key was active when the key event was generated. Read only.isCtrlKey in interface KeyboardEventpublic final String getKeyIdentifier()
getKeyIdentifier in interface KeyboardEventpublic final int getKeyLocation()
getKeyLocation in interface KeyboardEventpublic final boolean isMetaKey()
KeyboardEventtrue if the Meta (or Command, on Mac) key was active when the key event was generated. Read only.isMetaKey in interface KeyboardEventpublic final boolean isShiftKey()
KeyboardEventtrue if the Shift key was active when the key event was generated. Read only.isShiftKey in interface KeyboardEventpublic final void initKeyboardEvent(String type, boolean canBubble, boolean cancelable, Window view, String keyIdentifier, int keyLocation, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, boolean altGraphKey)
KeyboardEventInitializes the attributes of a keyboard event object.
typeArgkeydown, keypress, or keyup.canBubbleArgcancelableArgviewArgcharArgkeyArglocationArgmodifiersListArgrepeatArglocaleArginitKeyboardEvent in interface KeyboardEventCopyright © 2016. All rights reserved.