Why dispatching mousedown works but click doesn't?
legrass <[email protected]> Wed, 3 Aug 2011 04:51:48 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <2b9960b9-56f0-4c5e-aa6d-a10d5e67a16a@q15g2000yqk.googlegroups.com> |
Hi, I've experimented a strange (to me) behaviour (JavaXPCOM xulrunner 1.9.2). On the form on tripadvisor, after typing a text in the city textfield, eg. "Lon" the autocomplete suggestions shows up. If I dispatch a mousedown event on the autocomplete element, then the suggested item is correctly selected and filled in the textfield. However, if I use the same code but dispatching a click event, is not working. btw, the click event is NOT cancelled. Do you have any idea why this happens? I thought that the click event always involves a mousedown as first event. Thanks