mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Dismiss commit msg key (#2563)
This commit is contained in:
parent
4ccdeed3a2
commit
4ad2c4b271
2 changed files with 3 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Changed
|
||||
* improve syntax highlighting file detection [[@acuteenvy](https://github.com/acuteenvy)] ([#2524](https://github.com/extrawurst/gitui/pull/2524))
|
||||
* After commit: jump back to unstaged area [[@tommady](https://github.com/tommady)] ([#2476](https://github.com/extrawurst/gitui/issues/2476))
|
||||
* The default key to close the commit error message popup is now the Escape key [[@wessamfathi](https://github.com/wessamfathi)] ([#2552](https://github.com/extrawurst/gitui/issues/2552))
|
||||
* use OSC52 copying in case other methods fail [[@naseschwarz](https://github.com/naseschwarz)] ([#2366](https://github.com/gitui-org/gitui/issues/2366))
|
||||
|
||||
## [0.27.0] - 2024-01-14
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ impl Component for MsgPopup {
|
|||
_force_all: bool,
|
||||
) -> CommandBlocking {
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::close_msg(&self.key_config),
|
||||
strings::commands::close_popup(&self.key_config),
|
||||
true,
|
||||
self.visible,
|
||||
));
|
||||
|
|
@ -135,7 +135,7 @@ impl Component for MsgPopup {
|
|||
fn event(&mut self, ev: &Event) -> Result<EventState> {
|
||||
if self.visible {
|
||||
if let Event::Key(e) = ev {
|
||||
if key_match(e, self.key_config.keys.enter) {
|
||||
if key_match(e, self.key_config.keys.exit_popup) {
|
||||
self.hide();
|
||||
} else if key_match(
|
||||
e,
|
||||
|
|
|
|||
Loading…
Reference in a new issue