Question about preventDefault inside run function.

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.

1 Like

it is the good idea. thank you for your answer!