summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index a0906483d..b5dc95820 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -1150,7 +1150,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
},
{
ViewName: "main",
- Contexts: []string{"patch-building", "staging"},
+ Contexts: []string{"staging"},
Key: gui.getKey("files.commitChanges"),
Modifier: gocui.ModNone,
Handler: gui.handleCommitPress,
@@ -1158,6 +1158,22 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
},
{
ViewName: "main",
+ Contexts: []string{"staging"},
+ Key: gui.getKey("files.commitChangesWithoutHook"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleWIPCommitPress,
+ Description: gui.Tr.SLocalize("commitChangesWithoutHook"),
+ },
+ {
+ ViewName: "main",
+ Contexts: []string{"staging"},
+ Key: gui.getKey("files.commitChangesWithEditor"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleCommitEditorPress,
+ Description: gui.Tr.SLocalize("CommitChangesWithEditor"),
+ },
+ {
+ ViewName: "main",
Contexts: []string{"merging"},
Key: gui.getKey("universal.return"),
Modifier: gocui.ModNone,