Skip to content

CharEvent

data class CharEvent(val codePoint: Char, val modifiers: Int) : InputEvent

An event generated when a printable character is typed.

Constructors

CharEvent

constructor(codePoint: Char, modifiers: Int)

Properties

codePoint

modifiers

val modifiers: Int

Functions

consume

fun consume(bypassSuperCall: Boolean = false)

Marks this event as consumed, stopping further propagation.

Parameters

  • bypassSuperCall: When true, the corresponding screen method will return true instead of delegating to the super implementation. Use this when the UI has fully handled a keyboard or mouse event and the vanilla logic should be suppressed.