mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
chore: disable WebView keyboard shortcuts (#942)
This commit is contained in:
parent
9e2c864117
commit
f8339c7a9a
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user