Skip to content

API > @blocksuite/virgo > createVirgoKeyDownHandler

Function: createVirgoKeyDownHandler ​

createVirgoKeyDownHandler(vEditor, bindings): function

Parameters ​

ParameterType
vEditorVEditor< {bold: null | true; code: null | true; italic: null | true; link: null | string; strike: null | true; underline: null | true;} >
bindingsVKeyboardBindingRecord

Returns ​

(evt): void

Parameters ​

ParameterType
evtKeyboardEvent

Returns ​

void

Defined In ​

packages/virgo/src/utils/keyboard.ts:36