-
-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
Problem
When using PopupSceneDelegate, TextField inside popups cannot receive keyboard focus. The keyboard does not appear when the popup is presented.
Root Cause
When the user clicks a button to present a popup:
- The click occurs on the main app window
- iOS automatically makes the main window the key window
- The popup is displayed in the popup window (created by
PopupSceneDelegate) - Since the popup window is not the key window, TextField inside it cannot receive keyboard focus
Expected Behavior
TextField inside popups should be able to receive keyboard focus and show the keyboard automatically.
Proposed Solution
- Rename the internal
Windowclass toMijickWindowfor reliable identification - After presenting a popup, find the
MijickWindowby class name and callmakeKey()to make it the key window
No need to restore the previous key window when the popup is dismissed, because iOS will automatically make the main window the key window when the user interacts with it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels