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:
MrMugame
2025-03-26 19:43:00 +01:00
committed by Zef Hemel
parent d08c8cef20
commit d3e79ea4a7
+2 -1
View File
@@ -68,8 +68,9 @@ export const html = `<!DOCTYPE html>
if (keyEvent.defaultPrevented) {
event.preventDefault();
event.stopPropagation();
}
});
}, true);
globalThis.silverbullet = document.createDocumentFragment();