Why editor doesn't lose focus?

I am testing the editor of https://prosemirror.net/ .

When I click on a menubar icon, it doesn’t unfocus the editor? How is this possible? I have read the source code but can’t understand…

If you handle mousedown events and call event.preventDefault(), it prevents the focus-moving effect that the mouse click has, by default.

1 Like

I didn’t know. Thank you!!