revert workaround (fixes #26)

This commit is contained in:
Stephan Dilly 2020-05-09 12:47:53 +02:00
parent 9d28dcfc66
commit 13979c1013
2 changed files with 2 additions and 4 deletions

View file

@ -348,8 +348,7 @@ impl Component for ChangesComponent {
}
true
}
keys::STATUS_RESET_FILE_1
| keys::STATUS_RESET_FILE_2 => {
keys::STATUS_RESET_FILE => {
self.is_working_dir
&& self.dispatch_reset_workdir()
}

View file

@ -30,6 +30,5 @@ pub const MOVE_RIGHT: KeyEvent = no_mod(KeyCode::Right);
pub const MOVE_UP: KeyEvent = no_mod(KeyCode::Up);
pub const MOVE_DOWN: KeyEvent = no_mod(KeyCode::Down);
pub const STATUS_STAGE_FILE: KeyEvent = no_mod(KeyCode::Enter);
pub const STATUS_RESET_FILE_1: KeyEvent = no_mod(KeyCode::Char('D'));
pub const STATUS_RESET_FILE_2: KeyEvent =
pub const STATUS_RESET_FILE: KeyEvent =
with_mod(KeyCode::Char('D'), KeyModifiers::SHIFT);