Skip to content

fix: make popup window key window when presenting popup#203

Open
videni wants to merge 1 commit intoMijick:mainfrom
videni:fix/popup-keyboard-focus
Open

fix: make popup window key window when presenting popup#203
videni wants to merge 1 commit intoMijick:mainfrom
videni:fix/popup-keyboard-focus

Conversation

@videni
Copy link

@videni videni commented Dec 17, 2025

Fixes #201

Problem

When using PopupSceneDelegate, TextField inside popups cannot receive keyboard focus because clicking the button to present a popup makes the main window the key window.

Solution

  1. Renamed internal Window class to MijickWindow for reliable identification
  2. After present() completes, find MijickWindow by class name and call makeKey()

Changes

  • Public+Setup+SceneDelegate.swift: Renamed Window to MijickWindow
  • Public+Present+Popup.swift: Added makePopupWindowKey() to Popup.present() method

When using PopupSceneDelegate, TextField inside popups cannot receive
keyboard focus because clicking the button to present a popup makes
the main window the key window.

Changes:
- Renamed internal Window class to MijickWindow for reliable identification
- After present() completes, find MijickWindow by class name and call makeKey()
@videni videni requested a review from FulcrumOne as a code owner December 17, 2025 06:20
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.

TextField in popup cannot receive keyboard focus when using PopupSceneDelegate

1 participant