mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-19 17:35:41 +08:00
chore: disable WebView keyboard shortcuts (#942)
This commit is contained in:
1 parent
26a3dbcbe1
commit
2e64d62ca4
1 file changed
+5
@@ -24,6 +24,11 @@ if (!container) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener("keydown", (event) => {
|
||||||
|
// Disable WebView keyboard shortcuts
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
createRoot(container).render(
|
createRoot(container).render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<RecoilRoot>
|
<RecoilRoot>
|
||||||
|
|||||||
Reference in new issue
Block a user