pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/gitui-org/gitui/pull/2999

ts/pull-requests-5f61a10d0c5fd0c3.css" /> fix(popups): command-bar toggle ([.]) works inside diff/commit viewer popups by stevenpollack · Pull Request #2999 · gitui-org/gitui · GitHub
Skip to content

fix(popups): command-bar toggle ([.]) works inside diff/commit viewer popups - #2999

Open
stevenpollack wants to merge 1 commit into
gitui-org:masterfrom
stevenpollack:fix/cmdbar-toggle-in-viewers
Open

fix(popups): command-bar toggle ([.]) works inside diff/commit viewer popups#2999
stevenpollack wants to merge 1 commit into
gitui-org:masterfrom
stevenpollack:fix/cmdbar-toggle-in-viewers

Conversation

@stevenpollack

Copy link
Copy Markdown

The Inspect Commit, Compare, File History and Blame popups consume every key while open (a blanket return Ok(EventState::Consumed) at the end of their event()), so the command bar more/less toggle (., cmd_bar_toggle) never reaches the app-level handler in App::event and does nothing inside those popups.

Fix

Pass the cmd_bar_toggle key through (NotConsumed) at the top of each of those four popups' key handling, so it bubbles up to the existing app-level toggle. Everything else stays modal.

These popups host no text input, so letting . through can't hijack typing.

Before / after

  • Before: enter Inspect Commit (Enter on a commit in the Log tab), or open Compare / File History / Blame, then press . — the command bar never expands, even though more [.] is shown.
  • After: . toggles more/less in all four viewers, matching the behaviour in the main tabs.

🤖 Generated with Claude Code

…wers

The Inspect Commit, Compare, File History and Blame popups consumed
every key while open (a blanket `EventState::Consumed`), so the command
bar `more`/`less` toggle ([.]) never reached the app-level handler and
did nothing inside them. Pass the cmd_bar_toggle key through
(`NotConsumed`) so it bubbles up. None of these popups host a text
input, so this cannot hijack typing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
stevenpollack added a commit to stevenpollack/gitui that referenced this pull request Jul 15, 2026
Patch bump for the command-bar toggle fix in the diff/commit viewer
popups (upstream PR gitui-org#2999). Cut the changelog Unreleased
entries under [0.31.1].

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LrbVApNVj46mmVyzfqgDsx
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.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy