Module: features/hotkey

Interfaces

Type aliases

GenericHotkey

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

Defined in

profectus/src/features/hotkey.tsx:38


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:30

Variables

HotkeyType

Const HotkeyType: typeof HotkeyType

Defined in

profectus/src/features/hotkey.tsx:17


hotkeys

Const hotkeys: Record<string, GenericHotkey | undefined>

Defined in

profectus/src/features/hotkey.tsx:16

Functions

createHotkey

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

Type parameters

NameType
Textends HotkeyOptions

Parameters

NameType
optionsFunc() => T & ThisType<Hotkey<T>>

Returns

Hotkey<T>

Defined in

profectus/src/features/hotkey.tsx:45