# ModifierState

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

Keyboard modifier and lock state.

```ds title="ModifierState"
export struct ModifierState {
    isAlt: boolean;
    isAltGraph: boolean;
    isCapsLock: boolean;
    isControl: boolean;
    isFn: boolean;
    isFnLock: boolean;
    isMeta: boolean;
    isNumLock: boolean;
    isScrollLock: boolean;
    isShift: boolean;
    isSymbol: boolean;
    isSymbolLock: boolean;
}
```

[language/library/src/input/binding/keyboard.ds:18:43](https://github.com/destack-sh/destack/blob/main/language/library/src/input/binding/keyboard.ds#L18-L43)

## 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.
