Skip to content

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): boolean

Parameters:

ParameterTypeDescription
keystringThe key that was pressed.

Returns: booleanWhether the key was handled.