Skip to content

Keep the hidden command line out of PuDB keyboard navigation - #767

Merged
inducer merged 3 commits into
inducer:mainfrom
2836048681:fix/662-skip-hidden-cmdline
Nov 23, 2026
Merged

inducer merged 3 commits into
inducer:mainfrom
2836048681:fix/662-skip-hidden-cmdline

Conversation

@2836048681

Copy link
Copy Markdown

With hide_cmdline_win = True, pressing Down at the last source line can move focus into the invisible command line on Urwid 2.6.10. Subsequent keystrokes then go to a widget the user cannot see.

Keep the command line out of the layout while hidden and add it back when shown. The configured shortcut still opens and focuses the command line, and closing it restores focus to the source or active search field.

Fixes #662.

Validation on Python 3.12:

  • The new keypress regression test fails on the unpatched checkout with Urwid 2.6.10 at the assertion that Down leaves focus on the source.
  • Full python -m pytest -q suite: 37 passed with Urwid 2.6.10 and 37 passed with Urwid 5.1.3.
  • ruff check and git diff --check passed.

Fixes #662.

@inducer

inducer commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Thanks!

@inducer
inducer enabled auto-merge (rebase) November 23, 2026 19:15
@inducer
inducer merged commit 01044a8 into inducer:main Nov 23, 2026
7 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.

focused but hidden cmdline window

3 participants