InputEvent.Type

.

Values

ValueMeaning
KeyboardEvent

Keyboard key pressed (or released, where supported)

CharacterEvent

Do not use this in new programs, use KeyboardEvent instead

NonCharacterKeyEvent

Do not use this in new programs, use KeyboardEvent instead

PasteEvent

The user pasted some text. Not always available, the pasted text might come as a series of character events instead.

MouseEvent

only sent if you subscribed to mouse events

SizeChangedEvent

only sent if you subscribed to size events

UserInterruptionEvent

the user hit ctrl+c

EndOfFileEvent

stdin has received an end of file

HangupEvent

the terminal hanged up - for example, if the user closed a terminal emulator

CustomEvent

.

Meta