fix: don't process modifier key events in key event sequences

This commit is contained in:
CJ van den Berg 2024-12-12 16:58:45 +01:00
parent 0abb21a400
commit 9efc72da62
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -587,6 +587,9 @@ const BindingSet = struct {
}
globals.last_key_event_timestamp_ms = timestamp;
if (globals.current_sequence.items.len > 0 and input.is_modifier(event.key))
return null;
try globals.current_sequence.append(globals_allocator, event);
var buf: [6]u8 = undefined;
const bytes = try input.ucs32_to_utf8(&[_]u32{egc}, &buf);