Skip to main content

KeyboardEventModifierMask

type

A record of keyboard modifiers that must be enabled. If the value is `'any'` then the modifier key's state is ignored. If the value is `true` then the modifier key must be pressed. If the value is `false` or the property is omitted then the modifier key must not be pressed.

type KeyboardEventModifierMask = { [K in Exclude<keyof KeyboardEventModifiers, 'key' | 'code'>]?: boolean | undefined | 'any'; }

Import

import { KeyboardEventModifierMask } from '@modular/sdk/editor';