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:
@@ -42,7 +42,14 @@ func (m *TableListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||
|
||||
func (m *TableListModel) handleSearchInput(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
|
||||
switch msg.String() {
|
||||
case "esc", "enter":
|
||||
case "esc":
|
||||
m.searching = false
|
||||
// If there's an existing filter, clear it
|
||||
if m.searchInput != "" {
|
||||
m.searchInput = ""
|
||||
m.filterTables()
|
||||
}
|
||||
case "enter":
|
||||
m.searching = false
|
||||
m.filterTables()
|
||||
case "backspace":
|
||||
|
||||
Reference in New Issue
Block a user