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 589088 - List view doesn't focus when background is clicked
List view doesn't focus when background is clicked
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: List View
0.x.x [obsolete]
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-20 07:35 UTC by Holger Berndt
Modified: 2009-10-07 13:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Possible fix (one-liner) (589 bytes, patch)
2009-07-20 19:37 UTC, Holger Berndt
none Details | Review

Description Holger Berndt 2009-07-20 07:35:05 UTC
Please describe the problem:
The list view widget doesn't get the focus when clicking on the background. 

Steps to reproduce:
1. Visit a folder in list view that has a clickable background (i.e. just a few files, with empty space below)
2. Focus another widget (e.g. the places in the side pane by clicking on background there)
3. Observe how keyboard arrow navigation selects the different places
4. Click on list view background


Actual results:
Observe how keyboard focus is still in the side pane.

Expected results:
Keyboard focus should move to the list view to be consistent with all other widgets (including other views)

Does this happen every time?
Yes

Other information:
Comment 1 Holger Berndt 2009-07-20 19:37:49 UTC
Created attachment 138847 [details] [review]
Possible fix (one-liner)
Comment 2 Cosimo Cecchi 2009-10-07 13:51:35 UTC
Thanks for the report, I pushed a slightly different fix for this on master.

commit 3ef9873b86ec14ccd33680acb232fa0df0eb11ce
Author: Cosimo Cecchi <cosimoc@gnome.org>
Date:   Wed Oct 7 15:49:38 2009 +0200

    Chain up to the parent handler if we click outside any row.
    
    By doing so, the tree view widget will gain focus anyway.
    Fix bug #589088.