- commit
- f383c74
- parent
- 6710e0c
- author
- Eric Bower
- date
- 2025-03-14 11:36:05 -0400 EDT
chore(tui.logs): remove focus ability
1 files changed,
+1,
-24
+1,
-24
1@@ -47,30 +47,7 @@ func NewLogsPage(shrd *SharedModel) *LogsPage {
2 }
3
4 func (m *LogsPage) Footer() []Shortcut {
5- return []Shortcut{
6- {Shortcut: "tab", Text: "focus"},
7- }
8-}
9-
10-func (m *LogsPage) CaptureEvent(ev vaxis.Event) (vxfw.Command, error) {
11- switch msg := ev.(type) {
12- case vaxis.Key:
13- if msg.Matches(vaxis.KeyTab) {
14- if m.focus == "list" {
15- m.focus = "input"
16- return m.input.FocusIn()
17- }
18- m.focus = "list"
19- cmd, _ := m.input.FocusOut()
20- return vxfw.BatchCmd([]vxfw.Command{cmd, vxfw.FocusWidgetCmd(m.list)}), nil
21- }
22-
23- if m.focus == "input" {
24- m.filterLogs()
25- return vxfw.RedrawCmd{}, nil
26- }
27- }
28- return nil, nil
29+ return []Shortcut{}
30 }
31
32 func (m *LogsPage) filterLogs() {