From 3cbafbf91f88c8a77557da7691af82cc9263cd0e Mon Sep 17 00:00:00 2001 From: t8y2 Date: Tue, 13 Oct 2026 14:38:54 +0800 Subject: [PATCH] fix(ci): gate the accelerator-keys helper to windows and tests --- src-tauri/src/commands/shortcut_recording.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/commands/shortcut_recording.rs b/src-tauri/src/commands/shortcut_recording.rs index 2099eecfdf..2afadafefb 100644 --- a/src-tauri/src/commands/shortcut_recording.rs +++ b/src-tauri/src/commands/shortcut_recording.rs @@ -12,6 +12,7 @@ //! 非 Windows 平台没有这层拦截(WKWebView / WebKitGTK 不消费这些键),命令是空实现。 /// 录入态与「浏览器加速键是否开启」是互斥的:录入时关掉,其余时间保持 WebView2 默认。 +#[cfg(any(target_os = "windows", test))] fn browser_accelerator_keys_enabled(recording: bool) -> bool { !recording }