CodeMirrorEditor.tryHandleKey method
CodeMirrorEditor › tryHandleKey
Unofficial
Give the live preview layer a chance to handle a key before Vim mode does, which is how the horizontal motions step in and out of a rendered element.Signature:
tryHandleKey(key: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| key | string | The key that was pressed. |
Returns: boolean — Whether the key was handled.