Re: Why is the vBulletin RTE stopping me from preventDefault()?

"lacasseroland" <[email protected]> Wed, 07 Jun 2006 16:16:28 -0000
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
--- In [email protected], Edwin Martin <edwin@...> wrote:
>
> lacasseroland wrote:
> > If you inject it on a board with the vB editor and press the tab
key in
> > FF, the tab character is inserted in the textarea, but the focus is
> > given to the next element in the form, which is what
preventDefault() is
> > supposed to avoid.
> >   
> Have you tried both onkeypress and onkeyup?

I won't use onkeyup, but at first I was using onkeypress because you
want many tabs to be inserted if hold the key down.

Then I had a bug with IE and onkeypress (don't remember what bug and
where) and I decided not to fork this part of the code and to use
onkeydown for all browsers.

I will try onkeypress again just to be sure it's not the cause of my
problem. If it solves it with FF, I will fork the event used for IE
and others. Thanks.


> 
> Edwin Martin
> 
> -- 
> http://www.bitstorm.org/edwin/en/
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~-> 

Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/