From 11301270fb657b6bf60aa20b3b7d4cc9bccd1397 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 12 Dec 2024 16:59:24 +0100 Subject: [PATCH] fix: do not treat modified keys as input on sequence match abort --- src/keybind/keybind.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keybind/keybind.zig b/src/keybind/keybind.zig index 9e54a08..20b1708 100644 --- a/src/keybind/keybind.zig +++ b/src/keybind/keybind.zig @@ -593,7 +593,7 @@ const BindingSet = struct { try globals.current_sequence.append(globals_allocator, event); var buf: [6]u8 = undefined; const bytes = try input.ucs32_to_utf8(&[_]u32{egc}, &buf); - if (!input.is_non_input_key(event.key)) + if ((event.modifiers == 0 or event.modifiers == input.mod.shift) and !input.is_non_input_key(event.key)) try globals.current_sequence_egc.appendSlice(globals_allocator, buf[0..bytes]); var all_matches_impossible = true;