From f8339c7a9a5335df95039a489ba91a50702ecbd7 Mon Sep 17 00:00:00 2001 From: dongchengjie <37543964+dongchengjie@users.noreply.github.com> Date: Sun, 28 Apr 2024 16:19:13 +0800 Subject: [PATCH] chore: disable WebView keyboard shortcuts (#942) --- src/main.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.tsx b/src/main.tsx index 8588844..db06aa7 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -24,6 +24,11 @@ if (!container) { ); } +document.addEventListener("keydown", (event) => { + // Disable WebView keyboard shortcuts + event.preventDefault(); +}); + createRoot(container).render(