Skip to content

Commit

Permalink
Only register key press in vim mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschuster authored and cantino committed Aug 15, 2024
1 parent 3c15024 commit eb75fcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ impl<'a> Interface<'a> {
}

fn select_with_vim_key_scheme(&mut self, event: KeyEvent) -> bool {
if event.kind != KeyEventKind::Press {
return false;
}
if self.in_vim_insert_mode {
match event {
KeyEvent {
Expand Down

0 comments on commit eb75fcb

Please sign in to comment.