Skip to content

Replace MRU auto-open on focus with Ctrl+Space gesture#15

Merged
seankearon merged 2 commits into
mainfrom
claude/mru-list-dropdown-ofpnar
Jun 26, 2026
Merged

Replace MRU auto-open on focus with Ctrl+Space gesture#15
seankearon merged 2 commits into
mainfrom
claude/mru-list-dropdown-ofpnar

Conversation

@seankearon

Copy link
Copy Markdown
Owner

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

  • Removed auto-open on focus: Deleted the OnMruGotFocus event handler that automatically opened the MRU dropdown when the input boxes gained focus
  • Added Ctrl+Space gesture: Extended OnInputBoxKeyDown to detect Ctrl+Space and open the dropdown only when there's history to show
  • Reduced MRU history size: Changed MaxItems from 12 to 10 entries per list to accommodate the larger log area
  • Increased window size: Grew the default window height from 680 to 780 and minimum height from 520 to 560 to provide more space for the log viewer
  • Expanded log area: Increased the log section's minimum height from 110 to 190 pixels
  • Updated documentation: Added comprehensive comments explaining the new key handling behavior and updated the CHANGELOG

Implementation Details

The OnInputBoxKeyDown method now handles two distinct keyboard interactions:

  1. Ctrl+Space: Opens the MRU dropdown if items are available
  2. Enter: Closes the dropdown and triggers the open flow (existing behavior preserved)

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

claude added 2 commits June 26, 2026 08:19
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
@seankearon seankearon closed this Jun 26, 2026
@seankearon seankearon deleted the claude/mru-list-dropdown-ofpnar branch June 26, 2026 08:35
@seankearon seankearon restored the claude/mru-list-dropdown-ofpnar branch June 26, 2026 08:36
@seankearon seankearon reopened this Jun 26, 2026
@seankearon seankearon merged commit a16a375 into main Jun 26, 2026
4 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