summaryrefslogtreecommitdiff
path: root/internal/tui/pidpicker
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/pidpicker
parentbab716a6a5931c211fad2f17ee2f67e8d182a7fc (diff)
refactor(tui): migrate source key handling to KeyPressMsg
Diffstat (limited to 'internal/tui/pidpicker')
-rw-r--r--internal/tui/pidpicker/model.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tui/pidpicker/model.go b/internal/tui/pidpicker/model.go
index fff7614..187be52 100644
--- a/internal/tui/pidpicker/model.go
+++ b/internal/tui/pidpicker/model.go
@@ -124,7 +124,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.lastErr = msg.err
m.applyFilter()
return m, nil
- case tea.KeyMsg:
+ case tea.KeyPressMsg:
return m.updateKey(msg)
}
@@ -134,7 +134,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, cmd
}
-func (m Model) updateKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
+func (m Model) updateKey(msg tea.KeyPressMsg) (tea.Model, tea.Cmd) {
switch {
case key.Matches(msg, m.keys.Esc):
return m, tea.Quit