menu

ModifierState

import { ModifierState } from "destack:input/binding";

Keyboard modifier and lock state.

language/library/src/input/binding/keyboard.ds:18:43
1export struct ModifierState {2    isAlt: boolean;3    isAltGraph: boolean;4    isCapsLock: boolean;5    isControl: boolean;6    isFn: boolean;7    isFnLock: boolean;8    isMeta: boolean;9    isNumLock: boolean;10    isScrollLock: boolean;11    isShift: boolean;12    isSymbol: boolean;13    isSymbolLock: boolean;14}

Members

isAlt: boolean

Whether Alt is active.

isAltGraph: boolean

Whether AltGraph is active.

isCapsLock: boolean

Whether Caps Lock is active.

isControl: boolean

Whether Control is active.

isFn: boolean

Whether Fn is active.

isFnLock: boolean

Whether Fn Lock is active.

isMeta: boolean

Whether Meta is active.

isNumLock: boolean

Whether Num Lock is active.

isScrollLock: boolean

Whether Scroll Lock is active.

isShift: boolean

Whether Shift is active.

isSymbol: boolean

Whether Symbol is active.

isSymbolLock: boolean

Whether Symbol Lock is active.