diff options
Diffstat (limited to 'internal/tui/tui.go')
| -rw-r--r-- | internal/tui/tui.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 926c331..3c4feb6 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -137,6 +137,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyMsg: key := msg.String() + entriesCapturingText := m.activeTab == tabEntries && m.entries.capturesTextInput() if m.confirmQuit { switch key { @@ -159,6 +160,10 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } } + if entriesCapturingText { + m.pendingG = false + } + if m.pendingZ { m.pendingZ = false if key == "Q" { @@ -166,7 +171,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } } - if m.pendingG { + if m.pendingG && !entriesCapturingText { m.pendingG = false switch key { case "t": @@ -206,6 +211,9 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } return m, nil case "g": + if entriesCapturingText { + break + } m.pendingG = true return m, nil case "Z": |
