GNOME Bugzilla – Bug 675078
Activities overview loses focus after results from gnome-documents are shown
Last modified: 2012-04-29 23:13:18 UTC
1) Go to the Activities overview 2) Type in a search 3) Quickly (before the results from gnome-documents start ticking in) press the down arrow as if you were navigating to an app 4) When the results from gnome-documents now show up the focus disappears from the activity overview and it is no longer possible to navigate using the arrow keys This is with gnome-shell-3.4.1.
Created attachment 213070 [details] [review] searchDisplay: Reset the keyboard focus after displaying async results We hide the content around displaying new search results to prevent flickering, unfortunately, one side effect of hiding an actor is losing key focus if it currently is on the that actor or any child. This could happen in the case of async results showing up after the user had moved focus to the search results. This patch works around that issue by saving the key focus and resetting it back after displaying the new async results.
Review of attachment 213070 [details] [review]: Shouldn't we only set the key focus if we contain it? Not that it really matters, of course. A simple comment would also be nice.
Pushed with a comment and a condition to set the focus back only if we have it. Attachment 213070 [details] pushed as 54788d7 - searchDisplay: Reset the keyboard focus after displaying async results