CreateShortcutManager
Plugin: CreateShortcutManager
Members
activeContextName
createShortcutManager~activeContextName : string
The name of the active ShortcutContext.
CONTEXTS
createShortcutManager~CONTEXTS : UniqueMap
A unique map that stores keyboard shortcut contexts.
isCtrlKeySilenced
createShortcutManager~isCtrlKeySilenced : boolean
This variable relates to the captureCtrl shortcut option,
which allows for capturing the state of the Control/Meta modifier key.
Some of the default keyboard shortcuts related to cell selection need this feature for working properly.
Methods
handleEventWithScope
createShortcutManager~handleEventWithScope(event) ⇒ boolean
Handle the event with the scope of the active context.
| Param | Type | Description |
|---|---|---|
| event | KeyboardEvent | The keyboard event. |
recorderCallback
createShortcutManager~recorderCallback(event, keys, context) ⇒ boolean
A callback function for listening events from the recorder.
| Param | Type | Description |
|---|---|---|
| event | KeyboardEvent | The keyboard event. |
| keys | Array<string> | Names of the shortcut’s keys, (coming from KeyboardEvent.key), in lowercase or uppercase, unified across browsers. |
| context | object string | The context object or name. |