aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-07-07 01:43:51 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-07 01:43:51 +0800
commit82bf3117e9196f51b5c8d1c51636dad443fdb386 (patch)
treeeca1d8d6a77782144bf1fa72cbf8405c485881b2
parentcbcee897b1d3e58f7215098e97f5365b81a48a8f (diff)
downloadgsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.gz
gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.zst
gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.zip
-1 is valid button number, it's used for synthesised "mouse" events on
2004-07-06 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: -1 is valid button number, it's used for synthesised "mouse" events on form submit via Return key. Fixes bug #145420.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EventContext.cpp7
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e49236da5..216d58512 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2004-07-06 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/EventContext.cpp:
+
+ -1 is valid button number, it's used for synthesised "mouse" events
+ on form submit via Return key. Fixes bug #145420.
+
+2004-07-06 Christian Persch <chpe@cvs.gnome.org>
+
* configure.in:
Post-release version bump.
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index dde8d040a..2981e0789 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -594,6 +594,13 @@ nsresult EventContext::GetMouseEventInfo (nsIDOMMouseEvent *aMouseEvent, Mozilla
info->type = EPHY_EMBED_EVENT_MOUSE_BUTTON3;
break;
+ case (PRUint16) -1:
+ /* when the user submits a form with Return, mozilla synthesises
+ * a _mouse_ click event with btn=65535 (-1).
+ */
+ info->type = EPHY_EMBED_EVENT_KEY;
+ break;
+
default:
g_warning ("Unknown mouse button");
}