mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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:
parent
4826255ea3
commit
aaae141687
@ -1437,6 +1437,8 @@ widget_key_press_cb (GtkEventControllerKey *controller,
|
|||||||
priv->starting_search = TRUE;
|
priv->starting_search = TRUE;
|
||||||
if (gtk_event_controller_key_forward (controller, priv->search_entry))
|
if (gtk_event_controller_key_forward (controller, priv->search_entry))
|
||||||
{
|
{
|
||||||
|
gtk_widget_grab_focus (priv->search_entry);
|
||||||
|
|
||||||
if (priv->operation_mode != OPERATION_MODE_SEARCH &&
|
if (priv->operation_mode != OPERATION_MODE_SEARCH &&
|
||||||
priv->starting_search)
|
priv->starting_search)
|
||||||
operation_mode_set (impl, OPERATION_MODE_SEARCH);
|
operation_mode_set (impl, OPERATION_MODE_SEARCH);
|
||||||
|
Loading…
Reference in New Issue
Block a user