menu
InputEventKey
import { InputEventKey } from "destack:input/binding";
Input key event.
1export struct InputEventKey {2 kind: "key";3 header: InputEventHeader;4 action: InputEventAction;5 key: string;6 code: string;7 location: KeyLocation;8 hostCode: uint32;9 hostScanCode: uint32;10 hostValue: int64;11 hostModifiers: uint32;12 modifiers: ModifierState;13 isRepeat: boolean;14 isComposing: boolean;15}Members
kind: "key"Event discriminator.
header: InputEventHeaderShared event header.
action: InputEventActionEvent action.
key: stringLogical key value when available.
code: stringPhysical key code when available.
location: KeyLocationKey location.
hostCode: uint32Host-native key code.
hostScanCode: uint32Host-native scan code when available.
hostValue: int64Host-native key value.
hostModifiers: uint32Host-native modifier bitset.
modifiers: ModifierStateCanonical modifier state.
isRepeat: booleanWhether the event is a repeat.
isComposing: booleanWhether the key event belongs to composition.