On 8-May-07, at 3:15 PM, MikeC wrote:

> Your suggestion produced the following results.
>
> - Firefox and IE 6.0 - all key presses seem to be DISabled
> -Opera 9.2 - all key presses seem to be ENabled
>
> So you seem to have discovered the secret for handling two of my three
> browsers. But how do I disable the tab key in Opera 9.2?
>
> This is interesting because my boss who is also our system architect
> suggested to use Mochikit because a major design point is that you
> don't really have to struggle very much with differences among the
> many available browsers. But I can see that although this is a goal in
> Mochikit, I can also see that it must be a constant uphill battle to
> achieve this.

In general, use 'onkeypress' handlers for keys that generate visible  
characters, and 'onkeydown' handlers for  invisible characters.

I don't know why Opera won't let you disable the tab key. It'll take  
some trial and error to figure it out. (Have you tried listening on  
window or document instead of on the form field? Have you tried doing  
something like <input type="text" onkeydown="return false;" />?)  
Please let us know what you discover.

Thanks,
Beau


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to