From 94e4cd8878b19973e22938b774a7b35a15dc6d05 Mon Sep 17 00:00:00 2001 From: PanteR Date: Sun, 19 Aug 2018 08:01:16 +0300 Subject: [PATCH] Use Home and End keys to navigate Top/Bottom. --- src/widgets/proc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/proc.go b/src/widgets/proc.go index 29db6415..4ec636de 100644 --- a/src/widgets/proc.go +++ b/src/widgets/proc.go @@ -138,15 +138,19 @@ func (self *Proc) keyBinds() { self.KeyPressed <- true }) - viKeys := []string{"j", "k", "gg", "G", "", "", "", ""} + viKeys := []string{"j", "k", "gg", "G", "", "", "", "", "", ""} ui.On(viKeys, func(e ui.Event) { switch e.Key { case "j": self.Down() case "k": self.Up() + case "": + fallthrough case "gg": self.Top() + case "": + fallthrough case "G": self.Bottom() case "":