H
- @JsType(isNative=true, name="KeyboardEvent", namespace="<global>") public class NativeKeyboardEvent<H extends HTMLElement<H>> extends NativeUIEvent<H>
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
Constructor and Description |
---|
NativeKeyboardEvent() |
NativeKeyboardEvent(String typeArg) |
NativeKeyboardEvent(String typeArg,
NativeKeyboardEventInit keyboardEventInit) |
Modifier and Type | Method and Description |
---|---|
char |
getCharCode()
Deprecated.
|
KeyCode |
getCode() |
String |
getKey() |
int |
getKeyCode()
Deprecated.
|
String |
getLocale() |
KeyLocation |
getLocation() |
boolean |
getModifierState(String keyArg) |
String |
getNativeCode() |
int |
getNativeLocation() |
boolean |
isAltKey() |
boolean |
isComposing() |
boolean |
isCtrlKey() |
boolean |
isMetaKey() |
boolean |
isRepeat() |
boolean |
isShiftKey() |
getDetail, getView
getCancelBubble, getCurrentTarget, getEventPhase, getEventType, getNativeEventPhase, getTarget, getTimeStamp, getType, isBubbles, isCancellable, isDefaultPrevented, isTrusted, preventDefault, setCancelBubble, stopImmediatePropagation, stopPropagation
cast, getOwnPropertyNames, hasOwnProperty, observe
public NativeKeyboardEvent()
public NativeKeyboardEvent(String typeArg)
public NativeKeyboardEvent(String typeArg, NativeKeyboardEventInit keyboardEventInit)
@JsProperty(name="altKey") public boolean isAltKey()
@JsProperty(name="code") public String getNativeCode()
@JsProperty(name="ctrlKey") public boolean isCtrlKey()
@JsProperty(name="isComposing") public boolean isComposing()
@JsProperty(name="key") public String getKey()
@JsProperty(name="locale") public String getLocale()
@JsProperty(name="location") public int getNativeLocation()
@JsOverlay public final KeyLocation getLocation()
@JsProperty(name="metaKey") public boolean isMetaKey()
@JsProperty(name="repeat") public boolean isRepeat()
@JsProperty(name="shiftKey") public boolean isShiftKey()
public boolean getModifierState(String keyArg)
@Deprecated @JsProperty(name="keyCode") public int getKeyCode()
@Deprecated @JsProperty(name="charCode") public char getCharCode()
@JsOverlay public final KeyCode getCode()
Copyright © 2018 Xalys. All rights reserved.