mirror of
https://github.com/taigrr/teaqlite.git
synced 2026-04-02 04:59:03 -07:00
clear filter via esc
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user