Handle mouse-wheel scrolling in confirmation panel

This can easily happen for the breaking changes panel when there are many.
This commit is contained in:
Stefan Haller 2024-03-11 22:28:39 +01:00
parent 2f4437591e
commit 36fa25fa6d

View file

@ -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),