disable browser shortcut keys on windows

This commit is contained in:
Evan Almloff committed 2023-04-06 11:29:53 -05:00
1 parent 61d100e1f8
commit 37dcbbf758
4 files changed
+19 -8

No files matched your search

+7
View File
@@ -54,6 +54,13 @@ pub fn build(
.unwrap_or_default()
});
#[cfg(windows)]
{
// Windows has a platform specific settings to disable the browser shortcut keys
use wry::webview::WebViewBuilderExtWindows;
webview = webview.with_browser_accelerator_keys(false);
}
// These are commented out because wry is currently broken in wry
// let mut web_context = WebContext::new(cfg.data_dir.clone());
// .with_web_context(&mut web_context);