fix(linux): allow single-key custom triggers in fcitx5 plugin sync

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
aeoformandClaude Opus 4.7 committed 2026-05-16 09:45:57 +08:00
1 parent 088e2ab3d9
commit 416da6038c
1 file changed
-4
@@ -1590,10 +1590,6 @@ fn is_builtin_translation_shift(binding: &crate::types::ShortcutBinding) -> bool
fn sync_custom_dictation_to_plugin(inner: &Arc<Inner>) {
let prefs = inner.prefs.get();
let dictation = &prefs.dictation_hotkey;
// 只有 Custom 组合键才需要走插件同步
if dictation.modifiers.is_empty() {
return;
}
let key_string = crate::linux_fcitx::binding_to_fcitx_key_string(dictation);
if key_string.is_empty() {
return;