aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-autocompletion-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/ephy-autocompletion-window.c')
-rw-r--r--lib/widgets/ephy-autocompletion-window.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/lib/widgets/ephy-autocompletion-window.c b/lib/widgets/ephy-autocompletion-window.c
index 91e69df3c..a4a873610 100644
--- a/lib/widgets/ephy-autocompletion-window.c
+++ b/lib/widgets/ephy-autocompletion-window.c
@@ -750,11 +750,9 @@ ephy_autocompletion_window_key_press_cb (GtkWidget *widget,
GdkEventKey *event,
EphyAutocompletionWindow *aw)
{
- GdkEventKey tmp_event;
EphyAutocompletionWindowPrivate *p = aw->priv;
- GtkWidget *dest_widget;
+ GdkEventKey tmp_event;
- /* allow keyboard navigation in the alternatives clist */
if (event->keyval == GDK_Up || event->keyval == GDK_Down
|| event->keyval == GDK_Page_Up || event->keyval == GDK_Page_Down
|| ((event->keyval == GDK_space || event->keyval == GDK_Return)
@@ -763,23 +761,11 @@ ephy_autocompletion_window_key_press_cb (GtkWidget *widget,
return ephy_autocompletion_window_key_press_hack
(aw, event->keyval);
}
- else
- {
- dest_widget = p->parent;
- }
-
- if (dest_widget != widget)
- {
- tmp_event = *event;
- gtk_widget_event (dest_widget, (GdkEvent *)&tmp_event);
- return TRUE;
- }
- else
- {
- return FALSE;
- }
+ tmp_event = *event;
+ gtk_widget_event (p->parent, (GdkEvent *)&tmp_event);
+ return TRUE;
}
void