support left arrow to go back grom commit details (closes #418)

This commit is contained in:
Stephan Dilly 2021-02-24 22:06:51 +01:00
parent 546c7f3072
commit 6482c81382
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added ### Added
- support smoother left/right toggle for commit details ([#418](https://github.com/extrawurst/gitui/issues/418))
- support *force push* command [[@WizardOhio24](https://github.com/WizardOhio24)] ([#274](https://github.com/extrawurst/gitui/issues/274)) - support *force push* command [[@WizardOhio24](https://github.com/WizardOhio24)] ([#274](https://github.com/extrawurst/gitui/issues/274))
- show used char count in input texts ([#466](https://github.com/extrawurst/gitui/issues/466)) - show used char count in input texts ([#466](https://github.com/extrawurst/gitui/issues/466))

View File

@ -122,6 +122,8 @@ impl Component for InspectCommitComponent {
{ {
self.details.focus(true); self.details.focus(true);
self.diff.focus(false); self.diff.focus(false);
} else if e == self.key_config.focus_left {
self.hide();
} }
// stop key event propagation // stop key event propagation