diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -46,7 +46,9 @@ func main() { case tcell.KeyF2: app.SetFocus(queries) case tcell.KeyF3: - app.SetFocus(pv) + app.SetFocus(pv.tree) + case tcell.KeyF4: + app.SetFocus(pv.detail) case tcell.KeyEnter: if app.GetFocus() == queries { p, err := queries.Analyze() @@ -57,12 +59,6 @@ func main() { app.SetFocus(pv) } } - case tcell.KeyTAB: - if app.GetFocus() == pv.tree { - app.SetFocus(pv.detail) - } else if app.GetFocus() == pv.detail { - app.SetFocus(pv.tree) - } } return event }) |