After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785838 - Filename field loses focus when I click on any item from the side bar
Filename field loses focus when I click on any item from the side bar
Status: RESOLVED DUPLICATE of bug 756907
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-08-04 18:35 UTC by Strangiato
Modified: 2017-08-14 23:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Strangiato 2017-08-04 18:35:17 UTC
Write any text in gedit, press ctrl+s to save, click on any item from the side bar (documents, pictures, etc).
The text in the filename field is still selected but when I type the filename the dialog does a search instead to show the filename typed.
Comment 1 Daniel Boles 2017-08-05 23:26:57 UTC
(In reply to Strangiato from comment #0)
> The text in the filename field is still selected but when I type the
> filename the dialog does a search instead to show the filename typed.

Yes, the text is still selected, but because you clicked somewhere else, the GtkEntry loses the focus - as you can hopefully tell from your chosen theme removing the highlight around it - and so the keyboard input now goes to the search (since the new focus, the sidebar entry, doesn't handle it).

Giving focus back to the entry does not seem like an option, as it would interfere with keyboard navigation.


A possible solution is to disable focus-on-click for the sidebar widgets: this would stop them stealing the keyboard focus, but still make them keynavigable for users who want to tab/arrow to them.


If not for that last idea, then I'm not sure what else can be done here, really. Maybe a less active-looking colour on the selection highlights of unfocussed entries, etc.?
Comment 2 Daniel Boles 2017-08-07 12:37:53 UTC
(In reply to Daniel Boles from comment #1)
> A possible solution is to disable focus-on-click for the sidebar widgets:
> this would stop them stealing the keyboard focus, but still make them
> keynavigable for users who want to tab/arrow to them.

adding the ui-review keyword in case that helps to get eyes on this
Comment 3 Daniel Boles 2017-08-14 23:35:48 UTC

*** This bug has been marked as a duplicate of bug 756907 ***