diff options
author | Ben Burwell <ben@benburwell.com> | 2020-06-02 23:42:42 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2020-06-02 23:42:42 -0400 |
commit | 0da52f233b01bd8dcaa9cfa0882726be12358092 (patch) | |
tree | 2a1cae296da987b0a3ee3ea655318d46b8fa864f /main.go | |
parent | 14aa01d4f1669dd385da2fb3dfeb8f1f55a4b8df (diff) |
Start node detail enhancements
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 }) |