Commit b03e0f4e authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

Dot not show the tabs menu on CTRL + right click

We are handling CTRL + right click on EphyWebView as special case to
ensure the context menu is shown. This probably worked with WebKit1,
because the context menu was handled by the EphyWindow on button press
event, but now it's preventing the WebKitWebView from handling the
event. Since the EphyWindow no longer handles the button press event,
it ends up being handled by the EphyNotebook that shows the tabs popup
menu.
parent 466e078b
......@@ -463,13 +463,9 @@ ephy_web_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
static gboolean
ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
{
/* This are the special cases WebkitWebView doesn't handle but we have an
/* These are the special cases WebkitWebView doesn't handle but we have an
* interest in handling. */
/* We always show the browser context menu on control-rightclick. */
if (event->button == 3 && event->state == GDK_CONTROL_MASK)
return FALSE;
/* Handle typical back/forward mouse buttons. */
if (event->button == 8) {
webkit_web_view_go_back (WEBKIT_WEB_VIEW (widget));
......
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