Google is committed to advancing racial equity for Black communities. See how.

KeyEvent

data class KeyEvent
kotlin.Any
   ↳ androidx.ui.core.keyinput.KeyEvent

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

Summary

Public constructors
<init>(key: Key, type: KeyEventType)

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

Properties
Key

the key that was pressed.

KeyEventType

the type of key event.

Public constructors

<init>

KeyEvent(
    key: Key,
    type: KeyEventType)

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

Parameters
key: Key the key that was pressed.
type: KeyEventType the type of key event.

Properties

key

val key: Key

the key that was pressed.

type

val type: KeyEventType

the type of key event.