diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 5642e0901..c27b77da3 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -353,7 +353,7 @@ func (gui *Gui) renderGlobalOptions(g *gocui.Gui) error { "PgUp/PgDn": gui.Tr.SLocalize("scroll"), "← → ↑ ↓": gui.Tr.SLocalize("navigate"), "esc/q": gui.Tr.SLocalize("close"), - "?": gui.Tr.SLocalize("menu"), + "x": gui.Tr.SLocalize("menu"), }) } diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 9d8cfcdbb..7f07893b7 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -71,7 +71,7 @@ func (gui *Gui) GetKeybindings() []Binding { Description: gui.Tr.SLocalize("refresh"), }, { ViewName: "", - Key: '?', + Key: 'x', Modifier: gocui.ModNone, Handler: gui.handleMenu, }, { diff --git a/scripts/generate_cheatsheet.go b/scripts/generate_cheatsheet.go index 863089014..cfa6d92ad 100644 --- a/scripts/generate_cheatsheet.go +++ b/scripts/generate_cheatsheet.go @@ -30,7 +30,7 @@ func main() { file.WriteString("# Lazygit " + a.Tr.SLocalize("menu")) for _, binding := range bindings { - if key := a.Gui.GetKey(binding); key != "" && (binding.Description != "" || key == "?") { + if key := a.Gui.GetKey(binding); key != "" && (binding.Description != "" || key == "x") { if binding.ViewName != current { current = binding.ViewName if current == "" { @@ -44,7 +44,7 @@ func main() { // workaround to include menu keybinding in cheatsheet // could not add this Description field directly to keybindings.go, // because then menu key would be displayed in menu itself and that is undesirable - if key == "?" { + if key == "x" { binding.Description = a.Tr.SLocalize("menu") } content = fmt.Sprintf("\t%s%s %s\n", key, strings.TrimPrefix(utils.WithPadding(key, padWidth), key), binding.Description)