Yevhenii Nadtochii
01/31/2024, 7:36 PMvisible = false. But a user can trigger window visibility from the tray menu. The shown window is not focused even if it is alwaysOnTop = true. Use of window.requestFocus(), window.toFront() didn’t help. What is a proper way to do that? I can’t pass a focus requester to window’s modifier, it doesn’t accept one. This is on MacOS.Alexander Maryanovsky
01/31/2024, 9:08 PMwindow.toFront() and then use FocusRequester to focus whatever you want to focus in the window.Yevhenii Nadtochii
02/01/2024, 9:54 AMwindow.toFront() takes no effect. Window remains non-active. It is topmost, there is a caret in a text field I request focus for with FocusRequester, but I can’t type there as soon as I show a window. Firstly, I have to click either a window frame or a text field, and only then type there. A window frame remains grey (and not able to consume keyboard input in the focused text filed) until I click it.Alexander Maryanovsky
02/01/2024, 10:09 AMAlexander Maryanovsky
02/01/2024, 10:10 AMwindow.toFront() does make the window activeAlexander Maryanovsky
02/01/2024, 10:11 AMYevhenii Nadtochii
02/01/2024, 10:35 AMTray + LSUIElement = true for MacOS). Tray menu has Show window item. And a user usually have another active application at the moment he/she clicks a Show window item from a tray menu.
I will try to create a simple reproducer a bit later.Yevhenii Nadtochii
02/01/2024, 4:08 PMFinder.
3. Go to tray icon and open a window from the tray menu.
4. Its field is not focused.
When the currently active app is NOT MainKt, the window never gets focused on showing up. When the currently active app is MainKt, the window gets focused exactly half the time.Vincent
02/20/2024, 11:34 PMAlexander Maryanovsky
02/20/2024, 11:47 PMVincent
02/21/2024, 12:11 AM