diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 19:25:09 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 19:25:09 +0200 |
| commit | c3adb86fda302eeb90c2b07e56aae5abaea469ce (patch) | |
| tree | 6a50addcf57519bc53d28be5981b1d9456649adb /internal/tui/tui.go | |
| parent | bab716a6a5931c211fad2f17ee2f67e8d182a7fc (diff) | |
refactor(tui): migrate source key handling to KeyPressMsg
Diffstat (limited to 'internal/tui/tui.go')
| -rw-r--r-- | internal/tui/tui.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 24a8ba5..6c08c2f 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -246,7 +246,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.width = msg.Width m.height = msg.Height return m.updateActiveModel(msg) - case tea.KeyMsg: + case tea.KeyPressMsg: if key.Matches(msg, m.keys.Quit) { m.quitting = true m.stopTrace() @@ -307,7 +307,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if m.probeModal.Visible() { var dashboardCmd tea.Cmd // Keep dashboard refresh/data flow alive while probe modal is open. - if _, isKey := msg.(tea.KeyMsg); !isKey && m.screen == ScreenDashboard { + if _, isKey := msg.(tea.KeyPressMsg); !isKey && m.screen == ScreenDashboard { next, cmd := m.dashboard.Update(msg) m.dashboard = next.(dashboardui.Model) dashboardCmd = cmd @@ -319,7 +319,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { if m.exporter.Visible() { var dashboardCmd tea.Cmd // Keep dashboard refresh/data flow alive while export modal is open. - if _, isKey := msg.(tea.KeyMsg); !isKey && m.screen == ScreenDashboard { + if _, isKey := msg.(tea.KeyPressMsg); !isKey && m.screen == ScreenDashboard { next, cmd := m.dashboard.Update(msg) m.dashboard = next.(dashboardui.Model) dashboardCmd = cmd |
