filechooserwidget: Focus the searchbar when searching

This code path is taken if the search is already active, so focus the
search entry.
This commit is contained in:
Timm Bäder 2019-10-18 07:43:21 +02:00
parent 4826255ea3
commit aaae141687

View File

@ -1437,6 +1437,8 @@ widget_key_press_cb (GtkEventControllerKey *controller,
priv->starting_search = TRUE;
if (gtk_event_controller_key_forward (controller, priv->search_entry))
{
gtk_widget_grab_focus (priv->search_entry);
if (priv->operation_mode != OPERATION_MODE_SEARCH &&
priv->starting_search)
operation_mode_set (impl, OPERATION_MODE_SEARCH);