1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-10-25 05:37:37 +03:00

Show "Close/Cancel: <esc>" for menus like we do for confirmations

For many menus, just "Close" is fine, but some menus act more like confirmations
(e.g. the menu that appears when you cherry-pick and get conflicts); in this
case, it's good to make it more obvious that hitting esc cancels the whole
thing.
This commit is contained in:
Stefan Haller
2025-08-12 20:17:20 +02:00
parent aeff986450
commit 0c0c32aec4
8 changed files with 8 additions and 8 deletions

View File

@@ -47,7 +47,7 @@ func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types.
{
Key: opts.GetKey(opts.Config.Universal.Return),
Handler: self.close,
Description: self.c.Tr.Close,
Description: self.c.Tr.CloseCancel,
DisplayOnScreen: true,
},
}