소스 검색

Fix windows build, again

Jonathan Kelley 1 년 전
부모
커밋
9efeb51873
1개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 7 6
      packages/desktop/src/webview.rs

+ 7 - 6
packages/desktop/src/webview.rs

@@ -103,12 +103,13 @@ impl WebviewInstance {
             .with_file_drop_handler(file_drop_handler)
             .with_web_context(&mut web_context);
 
-        #[cfg(windows)]
-        {
-            // Windows has a platform specific settings to disable the browser shortcut keys
-            use wry::WebViewBuilderExtWindows;
-            webview = webview.with_browser_accelerator_keys(false);
-        }
+        // This was removed from wry, I'm not sure what replaced it
+        // #[cfg(windows)]
+        // {
+        //     // Windows has a platform specific settings to disable the browser shortcut keys
+        //     use wry::WebViewBuilderExtWindows;
+        //     webview = webview.with_browser_accelerator_keys(false);
+        // }
 
         if let Some(color) = cfg.background_color {
             webview = webview.with_background_color(color);