fix: don't try to insert non input key events

This commit is contained in:
CJ van den Berg 2024-11-16 00:33:40 +01:00
parent 7351cb7d7c
commit 881bb865f2
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -619,6 +619,7 @@ const BindingSet = struct {
try self.current_sequence.append(event);
var buf: [6]u8 = undefined;
const bytes = try input.ucs32_to_utf8(&[_]u32{egc}, &buf);
if (!input.is_non_input_key(event.key))
try self.current_sequence_egc.appendSlice(buf[0..bytes]);
var all_matches_impossible = true;