From 36fa25fa6d23e64698e81a276366f38c5dc7a046 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 11 Mar 2024 22:28:39 +0100 Subject: [PATCH] Handle mouse-wheel scrolling in confirmation panel This can easily happen for the breaking changes panel when there are many. --- pkg/gui/keybindings.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 319576cd6..6275d5189 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -247,6 +247,16 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi Modifier: gocui.ModNone, Handler: self.scrollDownConfirmationPanel, }, + { + ViewName: "confirmation", + Key: gocui.MouseWheelUp, + Handler: self.scrollUpConfirmationPanel, + }, + { + ViewName: "confirmation", + Key: gocui.MouseWheelDown, + Handler: self.scrollDownConfirmationPanel, + }, { ViewName: "submodules", Key: opts.GetKey(opts.Config.Universal.CopyToClipboard),