fix(ci): gate the accelerator-keys helper to windows and tests

This commit is contained in:
t8y2 committed 2026-10-13 14:38:57 +08:00
1 parent 820f7b1c83
commit 3cbafbf91f
1 file changed
+1
@@ -12,6 +12,7 @@
//! 非 Windows 平台没有这层拦截(WKWebView / WebKitGTK 不消费这些键),命令是空实现。
/// 录入态与「浏览器加速键是否开启」是互斥的:录入时关掉,其余时间保持 WebView2 默认。
#[cfg(any(target_os = "windows", test))]
fn browser_accelerator_keys_enabled(recording: bool) -> bool {
!recording
}