summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-13 23:46:08 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-13 23:46:08 +1000
commitebfed34145f2bc76764c4bdf1659a5b890803fcb (patch)
tree25ad5aaffc089f20143219894ae69f52df5a338d
parent95d2b0266408c99bcb6d64461b7f260b1dd4d2c0 (diff)
add PR #135 keybindings to this branch
-rw-r--r--pkg/gui/keybindings.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 6a8a645f5..b4f2bdc57 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -18,6 +18,8 @@ func (gui *Gui) keybindings(g *gocui.Gui) error {
{ViewName: "", Key: gocui.KeyCtrlC, Modifier: gocui.ModNone, Handler: gui.quit},
{ViewName: "", Key: gocui.KeyPgup, Modifier: gocui.ModNone, Handler: gui.scrollUpMain},
{ViewName: "", Key: gocui.KeyPgdn, Modifier: gocui.ModNone, Handler: gui.scrollDownMain},
+ {ViewName: "", Key: gocui.KeyCtrlU, Modifier: gocui.ModNone, Handler: gui.scrollUpMain},
+ {ViewName: "", Key: gocui.KeyCtrlD, Modifier: gocui.ModNone, Handler: gui.scrollDownMain},
{ViewName: "", Key: 'P', Modifier: gocui.ModNone, Handler: gui.pushFiles},
{ViewName: "", Key: 'p', Modifier: gocui.ModNone, Handler: gui.pullFiles},
{ViewName: "", Key: 'R', Modifier: gocui.ModNone, Handler: gui.handleRefresh},