Kill dialog: vim navigation (#134)

Add `hjkl` as navigation keys in kill dialog.

Closes #133
This commit is contained in:
Andy 2020-04-28 23:43:15 +02:00 committed by GitHub
parent 2faf3c6592
commit e850d3d2a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1012,6 +1012,12 @@ impl App {
'j' | 'k' | 'g' | 'G' => self.handle_char(caught_char),
_ => {}
}
} else if self.delete_dialog_state.is_showing_dd {
match caught_char {
'h' | 'j' => self.on_left_key(),
'k' | 'l' => self.on_right_key(),
_ => {}
}
}
}