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:

ParameterTypeDescription
keystringThe key binding to look up.
contextunknownThe context for the key lookup.
callback(action: (codeMirrorAdapter: CodeMirrorAdapterEx) => boolean) => voidThe callback invoked with the associated action.

Returns: void