Skip to content

Arrow Up Down Nav fix#915

Merged
dgageot merged 1 commit intodocker:mainfrom
jeanlaurent:arrow-up-down-nav
Nov 24, 2025
Merged

Arrow Up Down Nav fix#915
dgageot merged 1 commit intodocker:mainfrom
jeanlaurent:arrow-up-down-nav

Conversation

@jeanlaurent
Copy link
Copy Markdown
Member

@jeanlaurent jeanlaurent commented Nov 24, 2025

Fix TUI input editor history navigation

The up/down arrow keys now properly distinguish between history-loaded
content and user-typed content. When a user manually types text, the
arrows navigate the cursor within that text instead of replacing it
with history entries.

Behavior:

  • Empty input: arrows navigate command history
  • History-loaded content: arrows continue navigating history
  • User-typed content: arrows navigate cursor position

This prevents accidentally losing typed content when pressing arrow keys.
Which happened a lot, especially now we got shift-enter for new line

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
@jeanlaurent jeanlaurent requested a review from a team as a code owner November 24, 2025 13:00
@dgageot dgageot merged commit 1dfc815 into docker:main Nov 24, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants