From 421f60beeb7b813359cdd3d6c197314fa8847870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Tue, 24 Jun 2025 00:45:03 +0300 Subject: allow navigation during blinking --- internal/ui/table.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/ui') diff --git a/internal/ui/table.go b/internal/ui/table.go index febb8ff..0ba0144 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -305,10 +305,18 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } return m, nil case tea.KeyMsg: - // Ignore all key presses while a task is blinking to avoid - // accidentally modifying another task. + // Only allow navigation while a task row is blinking. This + // prevents accidental modifications to other tasks but still + // lets the user move around the table. if m.blinkID != 0 { - return m, nil + prevRow := m.tbl.Cursor() + prevCol := m.tbl.ColumnCursor() + var cmd tea.Cmd + m.tbl, cmd = m.tbl.Update(msg) + if prevRow != m.tbl.Cursor() || prevCol != m.tbl.ColumnCursor() { + m.updateSelectionHighlight(prevRow, m.tbl.Cursor(), prevCol, m.tbl.ColumnCursor()) + } + return m, cmd } if m.annotating { switch msg.Type { -- cgit v1.2.3