aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-02-24 23:26:28 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-02-26 06:56:33 +0800
commit7795f72123d8aced9247c512a708583cef62b95a (patch)
treed4f5999f4b163ed704181f1758db951e8a8d672c /embed
parent763d3dcfb0a577ba6ae7535705a75a5eb064c3b1 (diff)
downloadgsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar.gz
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar.bz2
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar.lz
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar.xz
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.tar.zst
gsoc2013-epiphany-7795f72123d8aced9247c512a708583cef62b95a.zip
Correctly handle shit+click only in ephy-window
If we handle shift+click in EphyWebView default handler then we will be preventing WebKit from getting *any* shift+click event, this breaks shift+click for extending selection. Removing that however makes shift+click browse to links just as click would do. The solution is to prevent policy_decision_required_cb to browse to the clicked link when it includes the shift modifier. Bug #610844
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-web-view.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index ca32314d0..129ee3bc7 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -526,10 +526,6 @@ ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
if (event->button == 3 && event->state == GDK_CONTROL_MASK)
return FALSE;
- /* We use this for downloading. */
- if (event->button == 1 && event->state == GDK_SHIFT_MASK)
- return FALSE;
-
/* Let WebKitWebView handle this. */
return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
}