FileChooser dialog window opened by portal is not focused by default on Xorg / X11, preventing keyboard navigation and shortcuts
Originally filed at https://github.com/flatpak/xdg-desktop-portal/issues/991
It seems the portal's FileChooser window (in the case where it opens the GTK4 filechooser) does not get properly focused by default, on Fedora 38 running a GNOME Xorg/X11 session.
I have tested with the flatpak version of Evince (from flathub), and with the Fedora-provided RPM version of Firefox 111.
In Firefox, I went to about:config
and set widget.use-xdg-desktop-portal.file-picker
to 1
to be able to use the GTK4 filechooser through the portal.
In both apps (Evince, Firefox, and probably others), if you press Ctrl + o
to open a file, the FileChooser will show up on top but it will not be focused, and so keyboard shortcuts or navigation won't work. Namely, these are the symptoms that are easy to verify:
- The
Esc
key will not dismiss the FileChooser dialog spawned by the portal, until you click the FileChooser window first - The keyboard's arrow keys (ex: up/down) will not let you navigate the filechooser; instead, it will scroll the window underneath (ex: the website shown by Firefox, or the document shown by Evince)