Skip to content

Commit 62146b9

Browse files
committed
fixed bug where pressing keybinds during filter would run actions instead of typing the letters
1 parent 10161ec commit 62146b9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

ui.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,13 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
100100
}
101101

102102
if m.state == stateList {
103-
var handled bool
104-
m, cmd, handled = m.handleCustomListKeys(msg)
105-
if handled {
106-
return m, cmd
103+
// Only intercept custom selection keys if the user is not actively typing in the filter input.
104+
if m.list.FilterState() != list.Filtering {
105+
var handled bool
106+
m, cmd, handled = m.handleCustomListKeys(msg)
107+
if handled {
108+
return m, cmd
109+
}
107110
}
108111
}
109112
}

0 commit comments

Comments
 (0)