I want to change the default ctrl-click to alt-click the code is as follows. When i execute alt-click the run method is not executed。
{
key: 'Alt-click',
run: (view: EditorView) => {
// return EditorView.clickAddsSelectionRange;
return true;
},
preventDefault: true,
},
how should i register the click event, thanks