From 7fb06cf03aa1458dfd66f41bb126474299e34354 Mon Sep 17 00:00:00 2001 From: raziman Date: Fri, 24 Jul 2020 14:51:45 +0800 Subject: [PATCH] prevent tab cycling when there is a popup --- start.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/start.go b/start.go index fb280e9..9e4090b 100644 --- a/start.go +++ b/start.go @@ -147,6 +147,11 @@ func start(application *tview.Application, args Args) { switch event.Key() { // cycle through each section case tcell.KeyTAB: + + if gomu.pages.GetPageCount() > 1 { + return event + } + gomu.cyclePanels() }