You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the file picker open's it is out of focus. This means that an extra click is required to select files in macOS. (So 3 clicks if you want to double click a file, first to focus and then 2 to select, instead of the 2 clicks expected.)
Describe the results you expected:
The file picker gets focus when it opens.
Additional information you deem important (e.g. issue happens only occasionally):
Something like this could work as a workaround if .focus() method was added to the file_picker:
Basically the operating system's file dialogs "left bar" stays gray when the app opens, so it is basically unfocused. And I try to show in the video how when trying to double click the "unfocused" file dialogs files they don't get selected. Instead a click to select the dialog and then double click to select file is required. (Or one click to select the dialog, then one to select file, and then submit.) https://user-images.githubusercontent.com/13387304/222429747-a8d0adad-bf6f-4567-9cbe-4db69b3c86bf.mov
Description
File picker doesn't get focus on macOS when it opens
Code example to reproduce the issue:
Shortened version of https://github.com/flet-dev/examples/blob/main/python/controls/file-picker/file-picker-all-modes.py reproduces the issue:
Describe the results you received:
When the file picker open's it is out of focus. This means that an extra click is required to select files in macOS. (So 3 clicks if you want to double click a file, first to focus and then 2 to select, instead of the 2 clicks expected.)
Describe the results you expected:
The file picker gets focus when it opens.
Additional information you deem important (e.g. issue happens only occasionally):
Something like this could work as a workaround if
.focus()
method was added to the file_picker:Flet version (
pip show flet
):Operating system:
macOS monterey
12.6 (21G115)
Did not test if this also happens in other operating systems.
Additional environment details:
The text was updated successfully, but these errors were encountered: