From df4d0a2ab0cc183b5990cf5369235b8c81f8bb93 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Thu, 29 Aug 2019 20:22:11 +0200 Subject: [PATCH] Add keys Left and Right to switch tab. Also, add Escape as quit key. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index afce258..02eca7e 100644 --- a/main.go +++ b/main.go @@ -250,17 +250,17 @@ func main() { select { case e := <-uiEvents: switch e.ID { - case "h": + case "h", "": tabpane.FocusLeft() termui.Clear() termui.Render(tabpane) renderTab() - case "l": + case "l", "": tabpane.FocusRight() termui.Clear() termui.Render(tabpane) renderTab() - case "q", "": + case "q", "", "": return case "r": termui.Clear()