summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Vriesman <glenn.vriesman@gmail.com>2020-02-03 14:18:03 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-04 23:21:51 +1100
commit47d7d87c82e80cbdeb933130fa24e6ce93ce8c53 (patch)
treed7c49a8490361604f994fbd40118f4f09ce615ca
parent5f53d50492ec9f09fcd5d7e239e59585441ce5cb (diff)
Added commit keybinding to staging views
-rw-r--r--pkg/gui/keybindings.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 3048d3235..a0906483d 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -1150,6 +1150,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
},
{
ViewName: "main",
+ Contexts: []string{"patch-building", "staging"},
+ Key: gui.getKey("files.commitChanges"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleCommitPress,
+ Description: gui.Tr.SLocalize("CommitChanges"),
+ },
+ {
+ ViewName: "main",
Contexts: []string{"merging"},
Key: gui.getKey("universal.return"),
Modifier: gocui.ModNone,