Replace MRU auto-open on focus with Ctrl+Space gesture#15
Merged
Conversation
The Branch and Solution AutoCompleteBoxes opened their recently-used list on focus, so the window started up looking like it had a list permanently stuck open. Remove the on-focus open; the list now appears when the user types or presses Ctrl+Space (only when there's history). Also lower the per-field MRU retention cap from 12 to 10. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GEVEBeP8N3JnetHAgwHtWZ
The log fills the remaining height, but the window was short enough that only a couple of lines showed. Increase the default window height (680 → 780) and minimum height (520 → 560), and raise the log's minimum height (110 → 190) so it has real breathing room. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GEVEBeP8N3JnetHAgwHtWZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaced the automatic dropdown behavior when focusing the Branch and Solution boxes with an on-demand gesture (Ctrl+Space). This improves the UI by preventing the MRU list from appearing permanently stuck open on startup, while still providing easy access to recently-used items.
Key Changes
OnMruGotFocusevent handler that automatically opened the MRU dropdown when the input boxes gained focusOnInputBoxKeyDownto detect Ctrl+Space and open the dropdown only when there's history to showMaxItemsfrom 12 to 10 entries per list to accommodate the larger log areaImplementation Details
The
OnInputBoxKeyDownmethod now handles two distinct keyboard interactions:The MRU list still appears automatically when the user starts typing (via AutoCompleteBox's built-in filtering), providing an intuitive discovery mechanism without the visual clutter of an always-open dropdown.
Tests were updated to use the new Ctrl+Space gesture instead of relying on focus to open the dropdown.
https://claude.ai/code/session_01GEVEBeP8N3JnetHAgwHtWZ