Primitives / foldkit-primitives/events

HotkeyOptions

interface · packages/primitives/src/events/hotkeys.ts:141

interface HotkeyOptions {
  readonly platform?: Platform | undefined
  readonly allowInInput?: boolean | undefined
}

Members

HotkeyOptions.platform

property · packages/primitives/src/events/hotkeys.ts:143

readonly platform?: Platform | undefined

What mod is: Meta on mac and ios, Control elsewhere. Default unknown, so Control.

HotkeyOptions.allowInInput

property · packages/primitives/src/events/hotkeys.ts:145

readonly allowInInput?: boolean | undefined

Match a press made in a text field too, which matchHotkey otherwise leaves to the typing.