KeyEvent¶
data class KeyEvent(
val keyCode: Int,
val scanCode: Int,
val modifiers: Int
) : InputEvent
An event generated by a keyboard key press.
Constructors¶
KeyEvent¶
Properties¶
keyCode¶
modifiers¶
scanCode¶
Functions¶
consume¶
Marks this event as consumed, stopping further propagation.
Parameters
- bypassSuperCall: When
true, the corresponding screen method will returntrueinstead of delegating to thesuperimplementation. Use this when the UI has fully handled a keyboard or mouse event and the vanilla logic should be suppressed.