cell editing works better

This commit is contained in:
2025-07-13 17:50:56 -07:00
parent 3fdac7d9d8
commit 76bcc8520c
4 changed files with 57 additions and 23 deletions

View File

@@ -57,7 +57,16 @@ func (m *TableDataModel) handleSearchInput(msg tea.KeyMsg) (tea.Model, tea.Cmd)
func (m *TableDataModel) handleNavigation(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
switch msg.String() {
case "q", "esc":
case "q":
return m, func() tea.Msg { return SwitchToTableListMsg{} }
case "esc":
if m.searchInput != "" {
// Clear search filter
m.searchInput = ""
m.filterData()
return m, nil
}
return m, func() tea.Msg { return SwitchToTableListMsg{} }
case "enter":