Re: Canselable event not canseled.

YuLo <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpfe
Message-ID <[email protected]>
Nail wrote:
 
> 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.
> 
>

as far as i understand i capture the event
DomEventTarget->AddEventListener(NS_LITERAL_STRING("keydown"), this, PR_TRUE);

and stop event propagation
keyEvent->StopPropagation();

but no result!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.