Key Event
data class KeyEvent(val key: Key, val type: KeyEventType, val nativeKeyCode: Int, val unicodeCodePoint: Int = 0, val repeatCount: Int = 0, val isAltPressed: Boolean = false, val isCtrlPressed: Boolean = false, val isMetaPressed: Boolean = false, val isShiftPressed: Boolean = false)(source)
Platform-independent hardware key event.
nativeKeyCode remains available for Android-specific keys without forcing the common contract to mirror the entire platform key-code table.
Constructors
Properties
Link copied to clipboard
whether an Alt modifier was active for this event
Link copied to clipboard
whether a Control modifier was active for this event
Link copied to clipboard
whether a Meta modifier was active for this event
Link copied to clipboard
whether a Shift modifier was active for this event
Link copied to clipboard
logical key meaning, or Key.Unknown when no mapping exists
Link copied to clipboard
unmodified platform key code, with platform-defined units
Link copied to clipboard
number of repeated key-down events reported by the platform
Link copied to clipboard
press/release classification
Link copied to clipboard
Unicode code point for character input, or 0 when unavailable