Package com.teamdev.jxbrowser.ui.event
Interface KeyPressed
- All Superinterfaces:
KeyEvent
An event indicating that a keyboard key has been pressed.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault char
keyChar()
Returns the character corresponding to the pressed key or 0 when a keyboard modifier such as Shift, Ctrl, Alt, Command, Win etc.default KeyCode
keyCode()
Returns the code of the key.default KeyLocation
Returns the location of the key on the keyboard.default KeyModifiers
Returns the keyboard modifiers applied.static KeyPressed.Builder
newBuilder
(KeyCode keyCode) Creates a newKeyPressed
builder with the given required parameters.
-
Method Details
-
newBuilder
Creates a newKeyPressed
builder with the given required parameters.- Parameters:
keyCode
- the code of the key- Returns:
- a new
KeyPressed.Builder
instance
-
keyCode
Description copied from interface:KeyEvent
Returns the code of the key. -
keyModifiers
Description copied from interface:KeyEvent
Returns the keyboard modifiers applied.- Specified by:
keyModifiers
in interfaceKeyEvent
-
keyLocation
Description copied from interface:KeyEvent
Returns the location of the key on the keyboard.- Specified by:
keyLocation
in interfaceKeyEvent
-
keyChar
default char keyChar()Returns the character corresponding to the pressed key or 0 when a keyboard modifier such as Shift, Ctrl, Alt, Command, Win etc. has been pressed on its own.
-