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
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
T | extends HotkeyOptions |
Parameters
Name | Type |
---|---|
optionsFunc | () => T & ThisType <Hotkey <T >> |
Returns
Hotkey
<T
>