Package com.teamdev.jxbrowser.dom.event
Interface KeyEventParams
- All Superinterfaces:
EventParams
,UiEventModifierParams
The DOM keyboard event parameters.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Returns a UTF-8 character associated with the physical key, if it has a printed representation.default DomKeyCode
Returns the code of the physical key used in the event.default boolean
Returnstrue
if the event bubbles up through the DOM.default boolean
Returnstrue
if the event can be canceled, and therefore prevented as if the event never happened.default boolean
Returnstrue
if the event is trusted, and therefore was generated by a user action.default KeyModifiers
Returns the key modifiers that are applied to the event.static KeyEventParams.Builder
Creates a newKeyEventParams
builder.
-
Method Details
-
newBuilder
Creates a newKeyEventParams
builder.- Returns:
- a new
KeyEventParams.Builder
instance
-
isBubbles
default boolean isBubbles()Returnstrue
if the event bubbles up through the DOM.- Specified by:
isBubbles
in interfaceEventParams
- Specified by:
isBubbles
in interfaceUiEventModifierParams
-
isCancelable
default boolean isCancelable()Returnstrue
if the event can be canceled, and therefore prevented as if the event never happened.- Specified by:
isCancelable
in interfaceEventParams
- Specified by:
isCancelable
in interfaceUiEventModifierParams
-
isTrusted
default boolean isTrusted()Returnstrue
if the event is trusted, and therefore was generated by a user action.- Specified by:
isTrusted
in interfaceEventParams
- Specified by:
isTrusted
in interfaceUiEventModifierParams
- Since:
- 7.12
-
domKeyCode
Returns the code of the physical key used in the event.- Since:
- 7.12
- See Also:
-
character
Returns a UTF-8 character associated with the physical key, if it has a printed representation.Otherwise, returns a pre-defined value, such as "Alt" for the Alt key. The possible values are listed in the W3C specification.
- Since:
- 7.12
-
keyModifiers
Returns the key modifiers that are applied to the event.- Specified by:
keyModifiers
in interfaceUiEventModifierParams
-