Catch event in capturing phase instead of bubbling phase (#1315)
This is should be the default behaviour as silverbullet keybinds should always have priority over keybinds implemented by document editors
This commit is contained in:
@@ -68,8 +68,9 @@ export const html = `<!DOCTYPE html>
|
||||
|
||||
if (keyEvent.defaultPrevented) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
});
|
||||
}, true);
|
||||
|
||||
globalThis.silverbullet = document.createDocumentFragment();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user