aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");
}