Re: Canselable event not canseled.
Neil <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpfe |
|---|---|
| Message-ID | <[email protected]> |
YuLo wrote: >I have a xulrunner application(c++) with tree widget(custom tree view). >if i catch "keydown" event, "canselable"-attribute is equal to "true", >but PreventDefault() do not prevent default action(the container is opening). > > Unfortunately the XBL [1] that handles the key events for tree widgets does not check for the PreventDefault action (indeed, it doesn't even run in the system event group). So the only way to stop it is to capture the event before it reaches the tree and stop the event's propagation. [1] http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/tree.xml#826 -- Warning: May contain traces of nuts.