Explorar o código

chore: disable WebView keyboard shortcuts (#942)

dongchengjie hai 1 ano
pai
achega
f8339c7a9a
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/main.tsx

+ 5 - 0
src/main.tsx

@@ -24,6 +24,11 @@ if (!container) {
   );
 }
 
+document.addEventListener("keydown", (event) => {
+  // Disable WebView keyboard shortcuts
+  event.preventDefault();
+});
+
 createRoot(container).render(
   <React.StrictMode>
     <RecoilRoot>