clear filter via esc

This commit is contained in:
2025-07-13 20:19:41 -07:00
parent 928db70011
commit 460917ceca
4 changed files with 21 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ func (m *TableDataModel) handleNavigation(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
switch msg.String() {
case "q":
m.gPressed = false
return m, func() tea.Msg { return SwitchToTableListMsg{} }
return m, func() tea.Msg { return SwitchToTableListClearMsg{} }
case "esc":
m.gPressed = false
@@ -71,7 +71,7 @@ func (m *TableDataModel) handleNavigation(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
m.filterData()
return m, nil
}
return m, func() tea.Msg { return SwitchToTableListMsg{} }
return m, func() tea.Msg { return SwitchToTableListClearMsg{} }
case "g":
if m.gPressed {