Skip to content

Auto-focus parameter filter on typing#779

Merged
chrxh merged 1 commit into
developfrom
worktree-claude+param-window-typeahead-filter
Jul 3, 2026
Merged

Auto-focus parameter filter on typing#779
chrxh merged 1 commit into
developfrom
worktree-claude+param-window-typeahead-filter

Conversation

@chrxh

@chrxh chrxh commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

In the simulation parameters window the filter field now grabs keyboard focus the moment the user starts typing — no need to click into the filter widget first.

Details

  • SimulationParametersMainWindow::shouldStartFilterTyping() returns true when the window (incl. child windows) is focused, no other item is active, and a printable character was entered this frame.
  • When true, ImGui::SetKeyboardFocusHere() is called right before the filter InputText, so the first typed character already lands in the filter.
  • Focus is only forced on the initial frame; once the input is active IsAnyItemActive() is true, so there is no focus-fighting.

Test

  • Release build (build-windows-ninja.bat 16) succeeds, alien.exe links.
  • GUI-only change; no engine/network/persistence tests affected.

🤖 Generated with Claude Code

Focus the filter input in the simulation parameters window as soon as
the user starts typing, without having to click the field first.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chrxh chrxh marked this pull request as ready for review July 3, 2026 15:25
@chrxh chrxh merged commit bc00878 into develop Jul 3, 2026
1 check passed
@chrxh chrxh deleted the worktree-claude+param-window-typeahead-filter branch July 3, 2026 15:25
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