remove duplicate secondary MouseWheelUp keybind (#4120)

- **Remove duplicate secondary view MouseWheelUp keybinding**

The `MouseWheelUp` keybind for the secondary view was duplicated in the
array.
This commit is contained in:
Stefan Haller 2024-12-17 22:46:27 +01:00 committed by GitHub
commit 0f269183de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,18 +193,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Tooltip: self.c.Tr.OpenCommandLogMenuTooltip,
OpensMenu: true,
},
{
ViewName: "secondary",
Key: gocui.MouseWheelUp,
Modifier: gocui.ModNone,
Handler: self.scrollUpSecondary,
},
{
ViewName: "secondary",
Key: gocui.MouseWheelDown,
Modifier: gocui.ModNone,
Handler: self.scrollDownSecondary,
},
{
ViewName: "main",
Key: gocui.MouseWheelDown,
@ -219,6 +207,12 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Description: self.c.Tr.ScrollUp,
Alternative: "fn+down",
},
{
ViewName: "secondary",
Key: gocui.MouseWheelDown,
Modifier: gocui.ModNone,
Handler: self.scrollDownSecondary,
},
{
ViewName: "secondary",
Key: gocui.MouseWheelUp,