fix: don't try to insert non input key events
This commit is contained in:
parent
7351cb7d7c
commit
881bb865f2
1 changed files with 2 additions and 1 deletions
|
@ -619,7 +619,8 @@ const BindingSet = struct {
|
||||||
try self.current_sequence.append(event);
|
try self.current_sequence.append(event);
|
||||||
var buf: [6]u8 = undefined;
|
var buf: [6]u8 = undefined;
|
||||||
const bytes = try input.ucs32_to_utf8(&[_]u32{egc}, &buf);
|
const bytes = try input.ucs32_to_utf8(&[_]u32{egc}, &buf);
|
||||||
try self.current_sequence_egc.appendSlice(buf[0..bytes]);
|
if (!input.is_non_input_key(event.key))
|
||||||
|
try self.current_sequence_egc.appendSlice(buf[0..bytes]);
|
||||||
|
|
||||||
var all_matches_impossible = true;
|
var all_matches_impossible = true;
|
||||||
var matched_count: usize = 0;
|
var matched_count: usize = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue