summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorhitsuji_no_shippo <hitsujinoshippoequalsheeptail@gmail.com>2020-03-12 14:26:11 +0900
committerJesse Duffield <jessedduffield@gmail.com>2020-03-18 22:50:35 +1100
commit41c76fb748d22d86c23d9b3446b5cf59b2e8e1b6 (patch)
treeb1162865e0d6c45c8323e8022e4a246b64eca862 /pkg
parentac0c3b9f924cab2658bec50a6469350d3163b1a2 (diff)
add close menu keybindings in docs
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/keybindings.go18
-rw-r--r--pkg/i18n/english.go3
2 files changed, 13 insertions, 8 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 485fead2a..8a6e9c091 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -901,16 +901,18 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleCloseCredentialsView,
},
{
- ViewName: "menu",
- Key: gui.getKey("universal.return"),
- Modifier: gocui.ModNone,
- Handler: gui.handleMenuClose,
+ ViewName: "menu",
+ Key: gui.getKey("universal.return"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleMenuClose,
+ Description: gui.Tr.SLocalize("closeMenu"),
},
{
- ViewName: "menu",
- Key: gui.getKey("universal.quit"),
- Modifier: gocui.ModNone,
- Handler: gui.handleMenuClose,
+ ViewName: "menu",
+ Key: gui.getKey("universal.quit"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleMenuClose,
+ Description: gui.Tr.SLocalize("closeMenu"),
},
{
ViewName: "information",
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go
index 121fadda5..cde2bcc5c 100644
--- a/pkg/i18n/english.go
+++ b/pkg/i18n/english.go
@@ -1026,6 +1026,9 @@ func addEnglish(i18nObject *i18n.Bundle) error {
}, &i18n.Message{
ID: "RenameBranchWarning",
Other: "This branch is tracking a remote. This action will only rename the local branch name, not the name of the remote branch. Continue?",
+ }, &i18n.Message{
+ ID: "closeMenu",
+ Other: "close menu",
},
)
}