VimApi.handleKey method
VimApi › handleKey
Unofficial
Match a key and run whatever command it resolves to.Signature:
handleKey(cm: CodeMirrorEditor, key: string, origin?: string | undefined): boolean | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| cm | CodeMirrorEditor | The editor to act on. |
| key | string | The key that was pressed. |
| origin? | string | undefined | Where the key came from. |
Returns: boolean | undefined — Whether the key was handled, or undefined when nothing matched.