Skip to content

CodeMirrorAdapterEx.lookupKey method

CodeMirrorAdapterEx › lookupKey

Unofficial

Look up a key binding and invoke the callback with the associated action.

Signature:

lookupKey(key: string, context: unknown, callback: (action: (codeMirrorAdapter: CodeMirrorAdapterEx) => boolean) => void): void

Parameters:

Parameter Type Description
key string The key binding to look up.
context unknown The context for the key lookup.
callback (action: (codeMirrorAdapter: CodeMirrorAdapterEx) => boolean) => void The callback invoked with the associated action.

Returns: void