new patch improved readability, testcase and explanation

Tobias Anton TA at ESC-Electronics.de
Tue Jul 13 20:31:35 BST 2004


Hi,

This patch is identical except that it skips formatting changes and is better 
readable.

Basically, it changes three things:
- dispatchGenericEvent generates a dom activate event not only after an 
unhandled mouseup, but also after an unhandled keyup.
- an unhandled activate event generates an ecma_click event or an 
ecma_dblclick_event respectively
- moved form value checking/unchecking into handleLocalEvents() of the 
ecma_click/dblclick event

To do that, I've created a class DOMActivateEventImpl, which carries a 
reference to the "parent" event, i.e. the mouse click or keyup event that 
caused the activate event and i've made handleLocalEvents() virtual and 
reimplemented it in HTMLInputElementImpl.

I'm doing this to enable KHTML to cancel click and activate-events. Testcase 
attached.

Cheers
-- Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: temp.diff
Type: text/x-diff
Size: 20560 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040713/89dbd348/attachment.diff>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20040713/89dbd348/attachment.html>


More information about the kfm-devel mailing list