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 775544 - GtkFileChooser SearchEntry gets its focus stolen when search results are listed, doesn't handle spaces (multiple words) properly, activates items instead
GtkFileChooser SearchEntry gets its focus stolen when search results are list...
Status: RESOLVED DUPLICATE of bug 765551
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.22.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
Depends on: 765551
Blocks:
 
 
Reported: 2016-12-03 01:03 UTC by Jean-François Fortin Tam
Modified: 2017-08-25 02:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2016-12-03 01:03:25 UTC
I'm not entirely sure if this is a regression with 3.22.x but this is the first time I'm noticing this. Happens both in the Wayland and X versions.

1. Open a "file open" chooser dialog (from, say, gedit)
2. Click a folder in your shortcuts sidebar, or in the pathbar breadcrumbs, where you know you will be able to find a file named "journal de bord.txt" *
3. Starting typing "journal de bord"

Result: once you typed "journal", some search results are shown, and the SearchEntry loses its focus... so as soon as you hit the spacebar to continue with "journal ", the first item in the search results' list will get selected and activated/opened.

Not only is it impossible to refine results, but if you have a fast computer it leads to accidents where it instantly opens the file in gedit and you type the rest of the search query ("de bord") into the newly opened file!


*: if you don't change the initial folder you're in, and the folder you're in does not have matches for what you'll be typing, the focus will not be stolen from the SearchEntry.
Comment 1 Daniel Boles 2016-12-03 01:18:40 UTC
Indeed, I knew something had been bugging me about this recently...

Between this and https://bugzilla.gnome.org/show_bug.cgi?id=773333 there seem to be some serious issues with searching.
Comment 2 Daniel Boles 2017-08-15 18:52:10 UTC
(In reply to Jean-François Fortin Tam from comment #0)
> Result: once you typed "journal", some search results are shown, and the
> SearchEntry loses its focus... so as soon as you hit the spacebar to
> continue with "journal ", the first item in the search results' list will
> get selected and activated/opened.

It seems worse - that Space just always goes to the file list, rather than being used to search: https://bugzilla.gnome.org/show_bug.cgi?id=765551
Comment 3 Jean-François Fortin Tam 2017-08-15 21:54:58 UTC
So it seems it's really two issues indeed: the focus stealing, and the spacebar stealing.
Comment 4 Daniel Boles 2017-08-24 00:02:28 UTC
For the focus stealing, see https://bugzilla.gnome.org/show_bug.cgi?id=756907
Comment 5 Daniel Boles 2017-08-24 00:05:31 UTC
Maybe this should be closed, as it is a duplicate of 2 older bugs?
Comment 6 Daniel Boles 2017-08-25 02:25:33 UTC
Let's try that. Since I can pick only one, marking as a dupe of the one I consider more serious... Also N.B. I moved the focus-stealing thing to the older https://bugzilla.gnome.org/show_bug.cgi?id=596841

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