Commit 7d17f299 authored by Paolo Borelli's avatar Paolo Borelli

Revert "search: set focus to view under cursor"

This reverts commit 5a20204f.

I pushed a local commit by mistaks
parent cb3e6995
......@@ -575,9 +575,7 @@ search_widget_key_press_event (GtkWidget *widget,
guint modifiers = gtk_accelerator_get_default_mod_mask ();
/* Close window */
if (event->keyval == GDK_KEY_Tab ||
event->keyval == GDK_KEY_Return ||
event->keyval == GDK_KEY_KP_Enter)
if (event->keyval == GDK_KEY_Tab)
{
hide_search_widget (frame, FALSE);
gtk_widget_grab_focus (GTK_WIDGET (frame->priv->view));
......@@ -1573,7 +1571,7 @@ gedit_view_frame_init (GeditViewFrame *frame)
G_CALLBACK (mark_set_cb),
frame);
g_signal_connect (frame->priv->search_entry,
g_signal_connect (frame->priv->revealer,
"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