public class JsKeyboardEvent extends JsUIEvent implements KeyboardEvent
KeyboardEvent.KeyCode, KeyboardEvent.KeyLocation, KeyboardEvent.KeyName
AT_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, WEBKITTRANSITIONEND
SVG_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, initUIEvent
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
addEventListener, 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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKeyCode
getCharCode, getDetail, getLayerX, getLayerY, getPageX, getPageY, getView, getWhich, initUIEvent
getClipboardData, getCurrentTarget, getEventPhase, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isBubbles, isCancelable, isCancelBubble, isDefaultPrevented, isReturnValue, preventDefault, setCancelBubble, setReturnValue, stopImmediatePropagation, stopPropagation
intAt, length
numberAt
public final boolean isAltGraphKey()
isAltGraphKey
in interface KeyboardEvent
public final boolean isAltKey()
KeyboardEvent
true
if the Alt (or Option, on Mac) key was active when the key event was generated. Read only.isAltKey
in interface KeyboardEvent
public final boolean isCtrlKey()
KeyboardEvent
true
if the Control key was active when the key event was generated. Read only.isCtrlKey
in interface KeyboardEvent
public final String getKeyIdentifier()
getKeyIdentifier
in interface KeyboardEvent
public final int getKeyLocation()
getKeyLocation
in interface KeyboardEvent
public final boolean isMetaKey()
KeyboardEvent
true
if the Meta (or Command, on Mac) key was active when the key event was generated. Read only.isMetaKey
in interface KeyboardEvent
public final boolean isShiftKey()
KeyboardEvent
true
if the Shift key was active when the key event was generated. Read only.isShiftKey
in interface KeyboardEvent
public 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)
KeyboardEvent
Initializes the attributes of a keyboard event object.
typeArg
keydown
, keypress
, or keyup
.canBubbleArg
cancelableArg
viewArg
charArg
keyArg
locationArg
modifiersListArg
repeatArg
localeArg
initKeyboardEvent
in interface KeyboardEvent
Copyright © 2016. All rights reserved.