From 9229df85cacd22187068cf125cf908f86a9a2e53 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Tue, 13 Feb 2024 23:42:15 +0100 Subject: [PATCH] fix: Enter key properly working when reading analysis from file --- tui/actions.go | 1 - tui/tui.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tui/actions.go b/tui/actions.go index 9926734d7..ad3944e33 100644 --- a/tui/actions.go +++ b/tui/actions.go @@ -55,7 +55,6 @@ func (ui *UI) AnalyzePath(path string, parentDir fs.Item) error { AddItem(nil, 0, 1, false) ui.pages.AddPage("progress", flex, true, true) - ui.table.SetSelectedFunc(ui.fileItemSelected) go ui.updateProgress() diff --git a/tui/tui.go b/tui/tui.go index 6e9917bdb..3d800f797 100644 --- a/tui/tui.go +++ b/tui/tui.go @@ -134,6 +134,7 @@ func CreateUI( ui.table = tview.NewTable().SetSelectable(true, false) ui.table.SetBackgroundColor(tcell.ColorDefault) + ui.table.SetSelectedFunc(ui.fileItemSelected) if ui.UseColors {