понедельник, 8 октября 2012 г., 1:21:31 UTC+4 пользователь Neil написал:
> YuLo wrote:Sorry, Neil, and thank you very much for your help.
> >Nail wrote:
> [How did you manage to spell my name incorrectly?]
> >>Unfortunately the XBL  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
> >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.
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.