temporary fix for sequences being broken
This commit is contained in:
parent
bb3bea0a7f
commit
e08c2aa3ba
1 changed files with 3 additions and 0 deletions
|
@ -584,6 +584,9 @@ const BindingSet = struct {
|
|||
//register a key press and try to match it with a binding
|
||||
fn process_key_event(self: *BindingSet, egc: u32, event: KeyEvent) !void {
|
||||
|
||||
//hacky fix since we are ignoring repeats and keyups right now
|
||||
if (event.event_type != event_type.PRESS) return;
|
||||
|
||||
//clear key history if enough time has passed since last key press
|
||||
const timestamp = std.time.milliTimestamp();
|
||||
if (self.last_key_event_timestamp_ms - timestamp > max_key_sequence_time_interval) {
|
||||
|
|
Loading…
Add table
Reference in a new issue