[epiphany] Dot not show the tabs menu on CTRL + right click
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Dot not show the tabs menu on CTRL + right click
- Date: Wed, 17 May 2017 08:51:35 +0000 (UTC)
commit b03e0f4eaba133092a540cc57859c766a9ae0f13
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed May 17 10:45:39 2017 +0200
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.
embed/ephy-web-view.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index b27c8b7..ed5b602 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]