prevent the reload shortcut on windows (#2654)
This commit is contained in:
1 parent
52656348d5
commit
1dcfc44c23
1 file changed
+7
@@ -142,6 +142,13 @@ impl WebviewInstance {
|
|||||||
WebViewBuilder::new_gtk(vbox)
|
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
|
webview = webview
|
||||||
.with_transparent(cfg.window.window.transparent)
|
.with_transparent(cfg.window.window.transparent)
|
||||||
.with_url("dioxus://index.html/")
|
.with_url("dioxus://index.html/")
|
||||||
|
|||||||
Reference in new issue
Block a user