summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2020-06-02 23:42:42 -0400
committerBen Burwell <ben@benburwell.com>2020-06-02 23:42:42 -0400
commit0da52f233b01bd8dcaa9cfa0882726be12358092 (patch)
tree2a1cae296da987b0a3ee3ea655318d46b8fa864f /main.go
parent14aa01d4f1669dd385da2fb3dfeb8f1f55a4b8df (diff)
Start node detail enhancements
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/main.go b/main.go
index 6b266d0..5639ea4 100644
--- a/main.go
+++ b/main.go
@@ -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
})