Skip to content
On this page

Module: features/hotkey

Interfaces

Type Aliases

GenericHotkey

Ƭ GenericHotkey: Replace<Hotkey<HotkeyOptions>, { enabled: ProcessedComputable<boolean> }>

Defined in

profectus/src/features/hotkey.tsx:39


Hotkey

Ƭ Hotkey<T>: Replace<T & BaseHotkey, { description: GetComputableType<T["description"]> ; enabled: GetComputableTypeWithDefault<T["enabled"], true> }>

Type parameters

NameType
Textends HotkeyOptions

Defined in

profectus/src/features/hotkey.tsx:31

Variables

HotkeyType

Const HotkeyType: typeof HotkeyType

Defined in

profectus/src/features/hotkey.tsx:18


hotkeys

Const hotkeys: Record<string, GenericHotkey | undefined>

Defined in

profectus/src/features/hotkey.tsx:17

Functions

createHotkey

createHotkey<T>(optionsFunc): Hotkey<T>

Type parameters

NameType
Textends HotkeyOptions

Parameters

NameType
optionsFuncOptionsFunc<T, BaseHotkey, GenericHotkey>

Returns

Hotkey<T>