Skip to content

Commit

Permalink
yep, i do exactly that
Browse files Browse the repository at this point in the history
  • Loading branch information
antler5 committed Apr 25, 2024
1 parent 0eba84f commit 20e8417
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/kanata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 20e8417

Please sign in to comment.