KeyCode

data class KeyCode(val value: Int)(source)

Typed platform-neutral carrier for one physical keyboard key code.

Platform adapters normalize recognized physical keys into this namespace without interpreting keyboard layout. Unrecognized keys use Unknown; KeyboardEvent.scanCode preserves the native physical scan code, and character input arrives separately through TextInputEvent.Character.

Constructors

Link copied to clipboard
constructor(value: Int)

Types

Link copied to clipboard
object Companion

Common cross-platform key identities used by retained focus and editing behavior.

Properties

Link copied to clipboard
val value: Int

platform key identity at least as large as the unknown sentinel, with Unknown used when the platform cannot identify it.