Repository navigation
Replies: 1 comment
|
You should be able to just add your own event listener on the page, which suppresses the key combination. For example, trying this seems to work for me on the Glide docs website, which has its own const overridden_tabs = new Set<number>();
glide.autocmds.create(
"UrlEnter",
{ hostname: "glide-browser.app" },
({ tab_id }) => {
if (overridden_tabs.has(tab_id)) {
return;
}
glide.content.execute(
() => {
document.addEventListener(
"keydown",
(event) => {
if (event.key === "/") {
event.stopPropagation();
}
},
{ capture: true },
);
},
{ tab_id },
);
overridden_tabs.add(tab_id);
},
); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
i have try something with bitwarden, and whant to open with , so i have make a simple keybind who when press it's just fire the one bitwarden use by default. The issue is, wikipedia use this keybind for open some kind of upload page.
How can i avoid wikipedia see this keybind at all and just make sure the keybind is pass to glide and the windows don't see it press ?
All reactions