Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Canselable event not canseled.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
YuLo  
View profile   Translate to Translated (View Original)
 More options Oct 8 2012, 11:56 am
Newsgroups: mozilla.dev.tech.xul
From: YuLo <yuloem...@gmail.com>
Date: Mon, 8 Oct 2012 08:56:49 -0700 (PDT)
Local: Mon, Oct 8 2012 11:56 am
Subject: Re: Canselable event not canseled.
понедельник, 8 октября 2012 г., 1:21:31 UTC+4 пользователь Neil написал:

> YuLo wrote:

> >Nail wrote:

> [How did you manage to spell my name incorrectly?]

> >>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!

> Sorry, I should have pointed out that the tree widget looks for the

> keypress event, so that's the one you have to capture, and of course

> capturing on the element itself doesn't help because stopPropagation

> only stops dispatch to subsequent elements.

> --

> Warning: May contain traces of nuts.

Sorry, Neil, and thank you very much for your help.
I accidentlaly deleted your name, then wrote it by hand with error.
Hope you'll excuse me.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.