Is it supposed to be the case that Mochikit's event object returns
nothing for event.key().char and event.key().string for special keys
on the keypress event in firefox?
For instance, a keypress event in a TEXTAREA for special keys (ENTER,
TAB, etc.) returns ' ' for key.string and '0' for key.char. A comment
in Signal.js explains that firefox returns the correct keyCode for
special keys on keypress; I tested this by calling
event.event().keyCode -- instead of event.key().string -- and
successfully got the keyCode for special keys on keypress. This seems
weird because it leaves no way (using Mochikit's event in firefox2) to
identify what the key was for special keys on keypress.

The reason I would like to figure this out is because I want to be
able to conditionally allow or prevent default behaviour for certain
special keys in TEXTAREAs.

Thank you,
-Dorian


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