Skip to content

Commit

Permalink
fix(tui): fix table list interaction by returning the previous behavi…
Browse files Browse the repository at this point in the history
…or before the port to tview
  • Loading branch information
danvergara committed Nov 7, 2024
1 parent 1ba2c24 commit 7179a08
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pkg/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ func (t *Tui) setupTablesList() error {
switch event.Key() {
case tcell.KeyCtrlL:
t.app.SetFocus(t.aw.queries)
case tcell.KeyEnter:
t.updateTableMetadataOnChange("")
}

switch event.Rune() {
Expand All @@ -308,14 +310,6 @@ func (t *Tui) setupTablesList() error {
return event
})

t.aw.tables.SetFocusFunc(func() {
t.updateTableMetadataOnChange("")
})

t.aw.tables.SetChangedFunc(func(i int, tableName string, st string, s rune) {
t.updateTableMetadataOnChange(tableName)
})

return nil
}

Expand Down

0 comments on commit 7179a08

Please sign in to comment.