diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 18:44:56 +0200 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2018-09-03 18:44:56 +0200 |
commit | bf8514f5e2fa5182fadbee08f1348b0e5021b3aa (patch) | |
tree | f4ed1059a3617bee22959a87c1a0250e479fc06f /pkg/gui | |
parent | 93e88ea8fea32b77365fee600ea745618f6256d3 (diff) |
helperize spaces
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/keybindings.go | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 9d5dc27ff..29caa9a26 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -102,10 +102,12 @@ func (gui *Gui) GetKeybindings() []Binding { Handler: gui.handleCommitEditorPress, Description: gui.Tr.SLocalize("CommitChangesWithEditor"), }, { - ViewName: "files", - Key: gocui.KeySpace, - Modifier: gocui.ModNone, - Handler: gui.handleFilePress, + ViewName: "files", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleFilePress, + KeyReadable: "space", + Description: gui.Tr.SLocalize("toggleStaged"), }, { ViewName: "files", Key: 'd', @@ -233,10 +235,12 @@ func (gui *Gui) GetKeybindings() []Binding { Modifier: gocui.ModNone, Handler: gui.handlePopFileSnapshot, }, { - ViewName: "branches", - Key: gocui.KeySpace, - Modifier: gocui.ModNone, - Handler: gui.handleBranchPress, + ViewName: "branches", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleBranchPress, + KeyReadable: "space", + Description: gui.Tr.SLocalize("checkout"), }, { ViewName: "branches", Key: 'c', |