aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-12-18 18:38:29 +0800
committerGustavo Noronha Silva <gns@gnome.org>2009-12-18 18:44:23 +0800
commitb46e4176e430872a3d47d0b41d0694a2ea121c5e (patch)
tree9d3a8bd26dc4c758b4503046d094a1f81e07821b
parent2dc702089f58f707d84e138816d2b40f3d07e096 (diff)
downloadgsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar.gz
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar.bz2
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar.lz
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar.xz
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.tar.zst
gsoc2013-epiphany-b46e4176e430872a3d47d0b41d0694a2ea121c5e.zip
Make Ctrl-rightclick always display the browser keyboard
-rw-r--r--embed/ephy-web-view.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 47960a256..4871fc965 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -513,6 +513,16 @@ ephy_web_view_key_press_event (GtkWidget *widget, GdkEventKey *event)
return key_handled;
}
+static gboolean
+ephy_web_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
+{
+ /* We always show the browser context menu on control-rightclick */
+ if (event->button == 3 && event->state & GDK_CONTROL_MASK)
+ return FALSE;
+
+ return GTK_WIDGET_CLASS (ephy_web_view_parent_class)->button_press_event (widget, event);
+}
+
static void
ephy_web_view_dispose (GObject *object)
{
@@ -1312,6 +1322,7 @@ ephy_web_view_class_init (EphyWebViewClass *klass)
gobject_class->get_property = ephy_web_view_get_property;
gobject_class->set_property = ephy_web_view_set_property;
+ widget_class->button_press_event = ephy_web_view_button_press_event;
widget_class->key_press_event = ephy_web_view_key_press_event;
/**