From 20e841705f553da6a342adacaa98558ce4f82693 Mon Sep 17 00:00:00 2001 From: antlers Date: Wed, 24 Apr 2024 20:31:24 -0700 Subject: [PATCH] yep, i do exactly that #979 --- src/kanata/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kanata/mod.rs b/src/kanata/mod.rs index 02ed69f60..3e9d93acf 100755 --- a/src/kanata/mod.rs +++ b/src/kanata/mod.rs @@ -982,6 +982,15 @@ impl Kanata { // allocations and logic. self.prev_keys.push(*k); self.last_pressed_key = *k; + if self.sequence_state.is_none() { + log::debug!("entering sequence mode"); + self.sequence_state = Some(SequenceState { + sequence: vec![], + sequence_input_mode: SequenceInputMode::VisibleBackspaced, + ticks_until_timeout: 2000 as u16, + sequence_timeout: 2000 as u16, + }); + } match &mut self.sequence_state { None => { log::debug!("key press {:?}", k);