KeyboardInputFilter

class KeyboardInputFilter(keys: Set<KeyCode> = emptySet(), val modifiers: KeyboardModifiers? = null)(source)

Immutable keyboard subscription evaluated before local dispatch and again before a remote handler runs. An empty key set or null modifiers accept any key or modifier combination. Modifier matching compares held Shift, Control, Alt, and Super keys exactly; Caps Lock and Num Lock do not change shortcut matching.

Parameters

keys

physical keys accepted by the subscription; membership is copied.

Constructors

Link copied to clipboard
constructor(keys: Set<KeyCode> = emptySet(), modifiers: KeyboardModifiers? = null)

Properties

Link copied to clipboard

Detached accepted key identities; an empty set accepts any physical key.

Link copied to clipboard

optional exact combination of held modifier keys.

Functions

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

Tests only detached event data without invoking application code or consuming input.