Package com.teamdev.jxbrowser.dom.event
Interface KeyEventParams
- All Superinterfaces:
EventParams,UiEventModifierParams
The DOM keyboard event parameters.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns a UTF-8 character associated with the physical key, if it has a printed representation.default DomKeyCodeReturns the code of the physical key used in the event.default booleanReturnstrueif the event bubbles up through the DOM.default booleanReturnstrueif the event can be canceled, and therefore prevented as if the event never happened.default booleanReturnstrueif the event is trusted, and therefore was generated by a user action.default KeyModifiersReturns the key modifiers that are applied to the event.static KeyEventParams.BuilderCreates a newKeyEventParamsbuilder.
-
Method Details
-
newBuilder
Creates a newKeyEventParamsbuilder.- Returns:
- a new
KeyEventParams.Builderinstance
-
isBubbles
default boolean isBubbles()Returnstrueif the event bubbles up through the DOM.- Specified by:
isBubblesin interfaceEventParams- Specified by:
isBubblesin interfaceUiEventModifierParams
-
isCancelable
default boolean isCancelable()Returnstrueif the event can be canceled, and therefore prevented as if the event never happened.- Specified by:
isCancelablein interfaceEventParams- Specified by:
isCancelablein interfaceUiEventModifierParams
-
isTrusted
default boolean isTrusted()Returnstrueif the event is trusted, and therefore was generated by a user action.- Specified by:
isTrustedin interfaceEventParams- Specified by:
isTrustedin 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:
keyModifiersin interfaceUiEventModifierParams
-