Opening Settings focuses search and shows an unsolicited popup

Abierto
#780 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@M4n0x ya está trabajando en esto.

Desde el 17/11/2026.

  • #781 de @M4n0x — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
macos, swift

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
Swift
Estrellas
184
Forks
12
Merge medio
3 h 50 min
PR fusionados (30 d)
387

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Seb-GRAF/StableBar

Todos los issues de Seb-GRAF/StableBar

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.