Package com.teamdev.jxbrowser.dom.event
Interface KeyEvent
- All Superinterfaces:
Event
,Event
,UiEventModifier
A keyboard event that provides access to the keyboard event data.
This event occurs when a user performs some keyboard action. For example, presses or releases a keyboard key.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a UTF-8 character associated with the physical key, if it has a printed representation.Returns the code of the physical key used in the event.Methods inherited from interface com.teamdev.jxbrowser.dom.event.Event
currentTarget, isBubbles, isCancelable, isTrusted, phase, preventDefault, stopPropagation, target, type
Methods inherited from interface com.teamdev.jxbrowser.dom.event.UiEventModifier
keyModifiers
-
Method Details
-
domKeyCode
DomKeyCode domKeyCode()Returns the code of the physical key used in the event.- Since:
- 7.12
- See Also:
-
character
String 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
-