diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 16:50:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:32:13 +1100 |
commit | 941d3c66486ff2534512d1538b7cacf9b8fbef65 (patch) | |
tree | 1d9685bde6090c04ec6e02ebd937604319463b1c /pkg/gui/keybindings.go | |
parent | 5c518eda0a994e49dec6f63c74ccd38b9e1b6e74 (diff) |
allow secondary view to be scrolled
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index f1283617a..55650c03a 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -543,6 +543,18 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleEnterCommitFile, Description: gui.Tr.SLocalize("enterFile"), }, + { + ViewName: "secondary", + Key: gocui.MouseWheelUp, + Modifier: gocui.ModNone, + Handler: gui.scrollUpSecondary, + }, + { + ViewName: "secondary", + Key: gocui.MouseWheelDown, + Modifier: gocui.ModNone, + Handler: gui.scrollDownSecondary, + }, } for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} { |