-
public final class KeyEventRepresents a keyboard event emitted by a navigator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumKeyEvent.Typepublic classKeyEvent.Companion
-
Field Summary
Fields Modifier and Type Field Description private final KeyEvent.Typetypeprivate final Keykeyprivate final Set<InputModifier>modifiersprivate final Stringcharacters
-
Constructor Summary
Constructors Constructor Description KeyEvent(KeyEvent.Type type, Key key, Set<InputModifier> modifiers, String characters)
-
Method Summary
Modifier and Type Method Description final KeyEvent.TypegetType()final KeygetKey()final Set<InputModifier>getModifiers()final StringgetCharacters()-
-
Constructor Detail
-
KeyEvent
KeyEvent(KeyEvent.Type type, Key key, Set<InputModifier> modifiers, String characters)
- Parameters:
type- Nature of the event.key- Key the user pressed or released.modifiers- Additional input modifiers for keyboard shortcuts.characters- Characters generated by the keypress, if any.
-
-
Method Detail
-
getType
final KeyEvent.Type getType()
-
getModifiers
final Set<InputModifier> getModifiers()
-
getCharacters
final String getCharacters()
-
-
-
-