diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-07-07 01:43:51 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-07-07 01:43:51 +0800 |
commit | 82bf3117e9196f51b5c8d1c51636dad443fdb386 (patch) | |
tree | eca1d8d6a77782144bf1fa72cbf8405c485881b2 /embed/mozilla | |
parent | cbcee897b1d3e58f7215098e97f5365b81a48a8f (diff) | |
download | gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.gz gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.bz2 gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.lz gsoc2013-epiphany-82bf3117e9196f51b5c8d1c51636dad443fdb386.tar.xz 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.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/EventContext.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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"); } |