diff --git a/packages/desktop/src/webview.rs b/packages/desktop/src/webview.rs index 5f8c8d7aa..75c2af759 100644 --- a/packages/desktop/src/webview.rs +++ b/packages/desktop/src/webview.rs @@ -142,6 +142,13 @@ impl WebviewInstance { WebViewBuilder::new_gtk(vbox) }; + // Disable the webview default shortcuts to disable the reload shortcut + #[cfg(target_os = "windows")] + { + use wry::WebViewBuilderExtWindows; + webview = webview.with_browser_accelerator_keys(false); + } + webview = webview .with_transparent(cfg.window.window.transparent) .with_url("dioxus://index.html/")