fix: don't process modifier key events in key event sequences
This commit is contained in:
parent
0abb21a400
commit
9efc72da62
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue