{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui.input.key

Interfaces

KeyInputModifierNode

Implement this interface to create a Modifier.Node that can intercept hardware Key events.

SoftKeyboardInterceptionModifierNode

Implement this interface to create a Modifier.Node that can intercept hardware Key events before they are sent to the software keyboard.

Classes

Key

Represents keys on a keyboard.

KeyEvent

When a user presses a key on a hardware keyboard, a KeyEvent is sent to the item that is currently focused.

KeyEventKt
KeyEventType

The type of Key Event.

KeyInputModifierKt
KeyKt
NativeKeyEvent

The native platform-specific keyboard key event.

SoftwareKeyboardInterceptionModifierKt
Key.Companion
KeyEventType.Companion