diff options
author | matejcik <ja@matejcik.cz> | 2020-01-03 13:01:32 +0100 |
---|---|---|
committer | Dawid Dziurla <dawidd0811@gmail.com> | 2020-01-03 15:09:59 +0100 |
commit | 0a31edecb66c1b00051f9d601c589d737cc62505 (patch) | |
tree | 778ad75a1e01c7805a9ee4662d97acd75cc93360 /pkg/gui/keybindings.go | |
parent | 6ac6d142c0d32820ca6b04e4a8db191613fcbc95 (diff) |
make Ctrl+P visible
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index ae0f8f8ad..8d036fc07 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -36,6 +36,9 @@ func (b *Binding) GetKey() string { if b.Key.(gocui.Key) == gocui.KeyCtrlK { return "ctrl+k" } + if b.Key.(gocui.Key) == gocui.KeyCtrlP { + return "ctrl+p" + } key = int(b.Key.(gocui.Key)) } @@ -140,6 +143,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "", + Key: gocui.KeyCtrlP, + Modifier: gocui.ModNone, + Handler: gui.handleCreatePatchOptionsMenu, + Description: gui.Tr.SLocalize("ViewPatchOptions"), + }, + { + ViewName: "", Key: 'P', Modifier: gocui.ModNone, Handler: gui.pushFiles, @@ -178,12 +188,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleCreateOptionsMenu, }, { - ViewName: "", - Key: gocui.KeyCtrlP, - Modifier: gocui.ModNone, - Handler: gui.handleCreatePatchOptionsMenu, - }, - { ViewName: "status", Key: 'e', Modifier: gocui.ModNone, |