KeyEvent

class KeyEvent(source: View, val key: KeyText, val code: KeyCode, val modifiers: Set<SystemInputEvent.Modifier>, val type: KeyState.Type) : InputEvent

Constructors

Link copied to clipboard
constructor(source: View, keyState: KeyState)
constructor(source: View, key: KeyText, code: KeyCode, modifiers: Set<SystemInputEvent.Modifier>, type: KeyState.Type)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Inherited properties

Link copied to clipboard

Indicates whether the event has been consumed.

Link copied to clipboard
Link copied to clipboard

Inherited functions

Link copied to clipboard
fun consume()

Sets an event's state to consumed. Consuming an event prevents other listeners and the OS from handling it.

Link copied to clipboard
operator fun contains(modifier: SystemInputEvent.Modifier): Boolean
operator fun contains(modifiers: Set<SystemInputEvent.Modifier>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String