patch: click event handling

Lars Knoll lars at trolltech.com
Wed Oct 29 10:06:58 CET 2003


On Wednesday 29 October 2003 07:49, David Faure wrote:
> On Tuesday 28 October 2003 23:25, Maciej Stachowiak wrote:
> > Here's a patch to make click handlers added w/ addEventListener work
> > right for form controls.
>
> Thanks, I'll have a look.

This should mostly work already in HEAD, since we now send the mouse and key 
events through the DOM for most form elements (not for <textarea> though).

Lars

> Another problem with click event handling: in the branch (so I suppose in
> Safari too), if you click twice, rather slowly, at the very same place, you
> get the onclick listener called only once. This is due to wrong code for
> detecting click vs dblclick.
>
> For the chosen solution and why, see the comment in the attached patch
> (note that the "-" lines in handleLocalEvents won't match yours, there was
> a different change made to HEAD previously, but it was wrong).



More information about the Khtml-devel mailing list