summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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
})