Skip to content

Commit 4ad2c4b

Browse files
authored
Dismiss commit msg key (#2563)
1 parent 4ccdeed commit 4ad2c4b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Changed
1414
* improve syntax highlighting file detection [[@acuteenvy](https://github.com/acuteenvy)] ([#2524](https://github.com/extrawurst/gitui/pull/2524))
1515
* After commit: jump back to unstaged area [[@tommady](https://github.com/tommady)] ([#2476](https://github.com/extrawurst/gitui/issues/2476))
16+
* 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))
1617
* use OSC52 copying in case other methods fail [[@naseschwarz](https://github.com/naseschwarz)] ([#2366](https://github.com/gitui-org/gitui/issues/2366))
1718

1819
## [0.27.0] - 2024-01-14

src/popups/msg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Component for MsgPopup {
114114
_force_all: bool,
115115
) -> CommandBlocking {
116116
out.push(CommandInfo::new(
117-
strings::commands::close_msg(&self.key_config),
117+
strings::commands::close_popup(&self.key_config),
118118
true,
119119
self.visible,
120120
));
@@ -135,7 +135,7 @@ impl Component for MsgPopup {
135135
fn event(&mut self, ev: &Event) -> Result<EventState> {
136136
if self.visible {
137137
if let Event::Key(e) = ev {
138-
if key_match(e, self.key_config.keys.enter) {
138+
if key_match(e, self.key_config.keys.exit_popup) {
139139
self.hide();
140140
} else if key_match(
141141
e,

0 commit comments

Comments
 (0)