disable browser shortcut keys on windows
This commit is contained in:
1 parent
61d100e1f8
commit
37dcbbf758
4 files changed
+19
-8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user