aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-node-view.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index 2a0ec2d6f..2f3df35e7 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -1581,14 +1581,19 @@ ephy_node_view_popup (EphyNodeView *view, GtkWidget *menu)
{
if (event->type == GDK_KEY_PRESS)
{
+ GdkEventKey *key = (GdkEventKey *) event;
+
gtk_menu_popup (GTK_MENU (menu), NULL, NULL,
ephy_gui_menu_position_tree_selection,
- view, 2, gtk_get_current_event_time ());
+ view, 0, key->time);
+ gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE);
}
- else
+ else if (event->type == GDK_BUTTON_PRESS)
{
+ GdkEventButton *button = (GdkEventButton *) event;
+
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL,
- NULL, 2, gtk_get_current_event_time ());
+ NULL, button->button, button->time);
}
gdk_event_free (event);