Bug 98994 - addEventListener() doesn't work for "dblclick" event
Summary: addEventListener() doesn't work for "dblclick" event
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-10 04:35 UTC by Travers Carter
Modified: 2005-05-18 02:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test case for addEventListener 'dblclick' (264 bytes, text/plain)
2005-02-10 04:39 UTC, Travers Carter
Details
Proposed patch (418 bytes, patch)
2005-05-18 02:02 UTC, Harri Porten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Travers Carter 2005-02-10 04:35:06 UTC
Version:            (using KDE KDE 3.3.1)
Installed from:    RedHat RPMs

When attaching a double click (dblclick) event using addEventListener() the event listener function is never called when the node is double clicked, however if you change the event name to 'click' and everything works as expected.

The supplied test case works as expected in Firefox 1.0, but the bug does seem to be present in Safari 1.0 (not sure about later versions).

If you set the ondblclick attribute in the HTML or set the .ondbclick property from Javascript the function is called correctly.
Comment 1 Travers Carter 2005-02-10 04:39:40 UTC
Created attachment 9523 [details]
Test case for addEventListener 'dblclick'

This testcase demonstrates usage of addEventListener for the dblclick event
which works in Firefox 1.0, but fails in Konqueror 3.3.1 (Fedora Core 3)
Comment 2 Harri Porten 2005-05-18 01:48:20 UTC
Confirmed with today's CVS.
Comment 3 Harri Porten 2005-05-18 02:02:27 UTC
Created attachment 11076 [details]
Proposed patch

Note sure what is the reason behind the "ignore" comment.
Comment 4 Harri Porten 2005-05-18 02:41:45 UTC
Fixed in revision 415255.