GNOME Bugzilla – Bug 775544
GtkFileChooser SearchEntry gets its focus stolen when search results are listed, doesn't handle spaces (multiple words) properly, activates items instead
Last modified: 2017-08-25 02:25:33 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.
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.
(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
So it seems it's really two issues indeed: the focus stealing, and the spacebar stealing.
For the focus stealing, see https://bugzilla.gnome.org/show_bug.cgi?id=756907
Maybe this should be closed, as it is a duplicate of 2 older bugs?
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 ***