Commit 5a20204f authored by Sébastien Lafargue's avatar Sébastien Lafargue Committed by Paolo Borelli

search: set focus to view under cursor

https://bugzilla.gnome.org/show_bug.cgi?id=742790
parent bff9c097
......@@ -575,7 +575,9 @@ search_widget_key_press_event (GtkWidget *widget,
guint modifiers = gtk_accelerator_get_default_mod_mask ();
/* Close window */
if (event->keyval == GDK_KEY_Tab)
if (event->keyval == GDK_KEY_Tab ||
event->keyval == GDK_KEY_Return ||
event->keyval == GDK_KEY_KP_Enter)
{
hide_search_widget (frame, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (frame->priv->view));
......@@ -1571,7 +1573,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
G_CALLBACK (mark_set_cb),
frame);
g_signal_connect (frame->priv->revealer,
g_signal_connect (frame->priv->search_entry,
"key-press-event",
G_CALLBACK (search_widget_key_press_event),
frame);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment