Hello. Small question -
We can`t use preventDefault inside run function, do it ?
Inside run function is EditorView and can be verified some logic, but do not stop the event.
https://codemirror.net/6/docs/ref/#view.KeyBinding.preventDefault
Hello. Small question -
We can`t use preventDefault inside run function, do it ?
Inside run function is EditorView and can be verified some logic, but do not stop the event.
https://codemirror.net/6/docs/ref/#view.KeyBinding.preventDefault
If your run
function returns true, the event will have preventDefault
called on it.
it is the good idea. thank you for your answer!