From 83757f10658415e48b22e2521885d42b712a5e37 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 26 Mar 2020 21:39:59 +1100 Subject: limit size of menu panel --- pkg/gui/keybindings.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'pkg/gui/keybindings.go') 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"} { -- cgit v1.2.3