diff options
author | David Chen <weichen2000121@gmail.com> | 2020-01-04 08:12:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 08:12:36 +0000 |
commit | 86b101c410b0ec2b7eaffcc81f6db44002801b6e (patch) | |
tree | 8a304ed16128fee08492ff7ef1b51fe94be9da7a /pkg | |
parent | f99a200db0edefd3aa13cb41080759bdfe291f63 (diff) | |
parent | 96ca7262e4b66e4de7cb8b4859cc2b3117bcffe8 (diff) |
Merge branch 'master' into custom-keybindings
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/keybindings.go | 13 | ||||
-rw-r--r-- | pkg/i18n/english.go | 3 |
2 files changed, 10 insertions, 6 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 810188bcc..f3c504ddb 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -423,6 +423,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "", + Key: gui.getKey("universal.createPatchOptionsMenu"), + Modifier: gocui.ModNone, + Handler: gui.handleCreatePatchOptionsMenu, + Description: gui.Tr.SLocalize("ViewPatchOptions"), + }, + { + ViewName: "", Key: gui.getKey("universal.pushFiles"), Modifier: gocui.ModNone, Handler: gui.pushFiles, @@ -461,12 +468,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleCreateOptionsMenu, }, { - ViewName: "", - Key: gui.getKey("universal.createPatchOptionsMenu"), - Modifier: gocui.ModNone, - Handler: gui.handleCreatePatchOptionsMenu, - }, - { ViewName: "status", Key: gui.getKey("universal.edit"), Modifier: gocui.ModNone, diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 849594872..55a607090 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -823,6 +823,9 @@ func addEnglish(i18nObject *i18n.Bundle) error { ID: "toggleAddToPatch", Other: "toggle file included in patch", }, &i18n.Message{ + ID: "ViewPatchOptions", + Other: "view custom patch options", + }, &i18n.Message{ ID: "PatchOptionsTitle", Other: "Patch Options", }, &i18n.Message{ |