Skip to content

Commit

Permalink
Handle mouse-wheel scrolling in confirmation panel
Browse files Browse the repository at this point in the history
This can easily happen for the breaking changes panel when there are many.
  • Loading branch information
stefanhaller committed Mar 12, 2024
1 parent 2f44375 commit 36fa25f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/gui/keybindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 36fa25f

Please sign in to comment.