diff --git a/internal/tui/views/trafficwatch/left_pane.go b/internal/tui/views/trafficwatch/left_pane.go index b54d66f..cfcd1f1 100644 --- a/internal/tui/views/trafficwatch/left_pane.go +++ b/internal/tui/views/trafficwatch/left_pane.go @@ -177,6 +177,9 @@ func (l *LeftPane) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } var cmd tea.Cmd + if val, ok := msg.(tea.KeyMsg); ok && val.String() == "left" { + return l, nil + } l.paginator, cmd = l.paginator.Update(msg) return l, cmd } diff --git a/internal/tui/views/trafficwatch/main_view.go b/internal/tui/views/trafficwatch/main_view.go index 94da820..b09d7ce 100644 --- a/internal/tui/views/trafficwatch/main_view.go +++ b/internal/tui/views/trafficwatch/main_view.go @@ -335,22 +335,20 @@ func (m *MainView) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } // Update focused pane - var cmd tea.Cmd if m.state == StateWithData { m.rightPane.SetFocused(m.focus == "right") - switch m.focus { - case "left": - _, cmd = m.leftPane.Update(msg) - case "right": - _, cmd = m.rightPane.Update(msg) - } + _, cmd := m.leftPane.Update(msg) + cmds = append(cmds, cmd) + + _, cmd = m.rightPane.Update(msg) + cmds = append(cmds, cmd) } if m.state == StateLogs { - _, cmd = m.logsView.Update(msg) + _, cmd := m.logsView.Update(msg) + cmds = append(cmds, cmd) } - cmds = append(cmds, cmd) return m, tea.Batch(cmds...) }