[gnome-software] Improve keynav on the search page



commit 6a3d4a5f397a63968aa4ae0e6c7a4114986b4e5e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 7 20:32:53 2013 -0400

    Improve keynav on the search page
    
    Arrange things so Page Up/Down work to scroll the list when
    the search page appears.

 src/gs-shell-search.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-search.c b/src/gs-shell-search.c
index a1575bd..cab5ee2 100644
--- a/src/gs-shell-search.c
+++ b/src/gs-shell-search.c
@@ -228,6 +228,9 @@ gs_shell_search_refresh (GsShellSearch *shell_search, const gchar *value, gboole
                 adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (widget));
                 gtk_adjustment_set_value (adj, gtk_adjustment_get_lower (adj));
         }
+        if (gs_shell_get_mode (priv->shell) == GS_SHELL_MODE_SEARCH) {
+                gs_grab_focus_when_mapped (widget);
+        }
 
        if (g_strcmp0 (value, priv->value) == 0)
                return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]