Opening Settings focuses search and shows an unsolicited popup

Open
#780 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@M4n0x is already working on this.

Since Nov 17, 2026.

  • #781 by @M4n0x — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
macos, swift

Research direction

Read Sources/StableBar/CustomizationWindow.swift and inspect how CustomizationWindow presents its NSHostingView and selects the initial key view. The issue reports an offscreen activation regression showing that Search settings keeps AppKit's initial focus. Confirm the fix by checking that Settings opens without focusing search, while deliberate search via click, Tab, or ⌘F and focus on returning to an open window still work; pull request #781 is already open.

Written by the indexing model from the issue text.

Description

bug

What happens

Opening Settings immediately focuses Search settings. macOS can then show a suggestion popup even though the user has not started searching.

Steps to reproduce

  1. Close Settings if it is already open.
  2. Open Settings… from StableBar's menu.
  3. Observe the focused search field and unsolicited popup without typing.

Expected

Settings opens without editing a text field. Clicking search, Tab and ⌘F still allow deliberate searching, and returning to an already-open window preserves focus.

Environment

Reported StableBar version was not provided. Investigated against main at 09413500 on macOS 27.2.1.

Evidence

The reporter supplied a screenshot of the focused, empty search field and popup. An offscreen activation regression confirms that the search field retains AppKit's initial focus; the native suggestion panel has not been reproduced live.

Diagnosis

CustomizationWindow in Sources/StableBar/CustomizationWindow.swift presents an NSHostingView without resetting the initial key-view selection. Search is the first editable control in its header.

Related

#608 and #612 concern search-header sizing. #517 concerns keyboard focus indicators in widget popups. Neither covers initial focus when Settings opens.

Triaged by Codex (gpt-6.1-sol).

Dominant language
Swift
Stars
184
Forks
12
Avg merge
3h 50m
Merged PRs (30d)
387

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Seb-GRAF/StableBar

All issues in Seb-GRAF/StableBar

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.