From 55c66aadfdedd39f8286e5367676fd7f8f25ff86 Mon Sep 17 00:00:00 2001 From: yu859 <15715093608@163.com> Date: Sun, 28 Jun 2026 16:36:21 +0800 Subject: [PATCH] fix(ui): treat shift-only keybindings as plain-key bindings --- ui/composables/useCommandHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/composables/useCommandHandler.ts b/ui/composables/useCommandHandler.ts index a165be4..694e6e2 100644 --- a/ui/composables/useCommandHandler.ts +++ b/ui/composables/useCommandHandler.ts @@ -61,7 +61,7 @@ export function useCommandHandler(): void { for (const kb of bindings) { const chords = parseBinding(kb.key) const tokens = chords.map(chordToken) - const hasMod = chords.some(c => c.modifiers.length > 0) + const hasMod = chords.some(c => c.modifiers.some(m => m !== 'shift')) matchables.push({ command: kb.command, tokens, whenNode: kb.whenNode, hasModifier: hasMod }) }