diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-03-11 22:28:39 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-03-12 13:27:14 +0100 |
commit | 36fa25fa6d23e64698e81a276366f38c5dc7a046 (patch) | |
tree | f00590f6fbdbc5af5f260f35757a0d0cfe6c9e65 /pkg/gui/keybindings.go | |
parent | 2f4437591e9a6e2d7ce46a1a9607762bf2fd002a (diff) |
Handle mouse-wheel scrolling in confirmation panel
This can easily happen for the breaking changes panel when there are many.
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -248,6 +248,16 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi 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), Handler: self.handleCopySelectedSideContextItemToClipboard, |