diff options
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 1e0e2c6677..2e93cd334e 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -1411,12 +1411,13 @@ widget_key_press_cb (GtkEventControllerKey *controller, } else { - gtk_event_controller_key_forward (controller, priv->search_entry); - - if (priv->operation_mode != OPERATION_MODE_SEARCH) - operation_mode_set (impl, OPERATION_MODE_SEARCH); + if (gtk_event_controller_key_forward (controller, priv->search_entry)) + { + if (priv->operation_mode != OPERATION_MODE_SEARCH) + operation_mode_set (impl, OPERATION_MODE_SEARCH); - handled = TRUE; + handled = TRUE; + } } g_object_unref (event); |