Closed tronical closed 9 months ago
I can't reproduce this on Linux or Windows. This seems macOS specific, perhaps winit related.
I bet this happens when the preview is reloaded (and the preview is reloaded because we open a new file so the text editor send that file to the LSP)
I wonder what's the value of post_load_behavior in https://github.com/slint-ui/slint/blob/053b990f2a5fb4de5cb93d28ed7796128fd3228e/tools/lsp/preview.rs#L318-L320
It still happens that these steps reproduce a slint preview window showing up in the macOS doc (i.e. preview is triggered), but the focus is not transferred anymore. That was the biggest annoying bug and the reason for this ticket. As it doesn't happen anymore, let's close it.
Try the following sequence:
desktop_window.slint
.MidMain
element use.It is very annoying and unexpected that the focus is lost when pressing "Cursor down".
Screencast to show the bug - note how the cursor disappears at the end of the clip:
https://user-images.githubusercontent.com/1486/227930563-104be107-efa0-45ae-ad00-13a0d698a49f.mov