summaryrefslogtreecommitdiff
path: root/internal/tui/probes/model.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-05 19:25:09 +0200
committerPaul Buetow <paul@buetow.org>2026-03-05 19:25:09 +0200
commitc3adb86fda302eeb90c2b07e56aae5abaea469ce (patch)
tree6a50addcf57519bc53d28be5981b1d9456649adb /internal/tui/probes/model.go
parentbab716a6a5931c211fad2f17ee2f67e8d182a7fc (diff)
refactor(tui): migrate source key handling to KeyPressMsg
Diffstat (limited to 'internal/tui/probes/model.go')
-rw-r--r--internal/tui/probes/model.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tui/probes/model.go b/internal/tui/probes/model.go
index c50c696..c4512f9 100644
--- a/internal/tui/probes/model.go
+++ b/internal/tui/probes/model.go
@@ -87,7 +87,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}
m.clampCursor()
return m, nil
- case tea.KeyMsg:
+ case tea.KeyPressMsg:
if m.searching {
return m.updateSearch(msg)
}
@@ -125,7 +125,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
return m, nil
}
-func (m Model) updateSearch(msg tea.KeyMsg) (Model, tea.Cmd) {
+func (m Model) updateSearch(msg tea.KeyPressMsg) (Model, tea.Cmd) {
switch msg.String() {
case "esc":
m.searching = false