public interface DOMUIEventModifier extends DOMUIEvent
Modifier and Type | Method and Description |
---|---|
boolean |
altKey()
Indicates if the alt key was pressed (
指示事件发生时是否按下alt键(true)或未按下(false)。 true ) or not (
false ) when the event occured.
|
boolean |
ctrlKey()
Indicates if the ctrl key was pressed (
指示事件发生时是否按了ctrl键(是),否则是(false)。 true ) or not (
false ) when the event occured.
|
boolean |
metaKey()
Indicates if the meta key was pressed (
指示在事件发生时是否按了元键(是)(真)或否(假)。 true ) or not (
false ) when the event occured.
|
boolean |
shiftKey()
Indicates if the shift key was pressed (
指示在事件发生时是否按了Shift键(是)(真)。 true ) or not (
false ) when the event occured.
|
getDetail
getCurrentTarget, getEventPhase, getTarget, getType, isBubbles, isCancelable, isKeyboardEvent, isMouseEvent, isUIEvent, preventDefault, stopPropagation
boolean ctrlKey()
true
) or not (
false
) when the event occured.
true
if the ctrl key was pressed.
如果按下ctrl键。
boolean altKey()
true
) or not (
false
) when the event occured.
true
if the alt key was pressed.
如果按下alt键。
boolean shiftKey()
true
) or not (
false
) when the event occured.
true
if the shift key was pressed.
如果按下了Shift键。
boolean metaKey()
true
) or not (
false
) when the event occured. On Macintosh keyboards, this is the Command key. On Windows keyboards, this is the Windows key.
true
if the meta key was pressed.
如果按下了meta键。