diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-26 21:39:59 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-26 21:44:33 +1100 |
commit | 83757f10658415e48b22e2521885d42b712a5e37 (patch) | |
tree | 35665e4869d2f48c494a9d4ffce13717da34ef73 /pkg/gui/keybindings.go | |
parent | f2036b42e53e1fc647f431e08e078e5c96bc4352 (diff) |
limit size of menu panel
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index ab2273d94..31096a759 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1462,6 +1462,30 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Modifier: gocui.ModNone, Handler: gui.handleSearchEscape, }, + { + ViewName: "confirmation", + Key: gui.getKey("universal.prevItem"), + Modifier: gocui.ModNone, + Handler: gui.scrollUpConfirmationPanel, + }, + { + ViewName: "confirmation", + Key: gui.getKey("universal.nextItem"), + Modifier: gocui.ModNone, + Handler: gui.scrollDownConfirmationPanel, + }, + { + ViewName: "confirmation", + Key: gui.getKey("universal.prevItem-alt"), + Modifier: gocui.ModNone, + Handler: gui.scrollUpConfirmationPanel, + }, + { + ViewName: "confirmation", + Key: gui.getKey("universal.nextItem-alt"), + Modifier: gocui.ModNone, + Handler: gui.scrollDownConfirmationPanel, + }, } for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} { |