[gtk/wip/baedert/filechooser: 7/9] filechooserwidget: Focus the entry when searching



commit 4f09ea98702e72b48569f692fd61452963ad8406
Author: Timm Bäder <mail baedert org>
Date:   Tue Jan 15 07:47:59 2019 +0100

    filechooserwidget: Focus the entry when searching
    
    When pressing a button that refines our search, move the focus to the
    search entry.

 gtk/gtkfilechooserwidget.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 4a898ee7ef..6f8269290d 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -1414,6 +1414,7 @@ widget_key_press_cb (GtkEventController *controller,
       if (priv->operation_mode != OPERATION_MODE_SEARCH)
         operation_mode_set (impl, OPERATION_MODE_SEARCH);
 
+      gtk_entry_grab_focus_without_selecting (GTK_ENTRY (priv->search_entry));
       handled = TRUE;
     }
 


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