Strange, when I look at event.keyCode in FF, I get the keycode for control characters but I get 0 for letters, digits and other printable characters.
Peace, AMA3 ----- Original Message ----- From: "nihaopaul" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, May 03, 2007 01:41 Subject: [Rails-spinoffs] Re: no prototype solution to event.keyCode vs .which? > > AMA3 wrote: >> I see that IE uses event.keyCode to identify which key caused an event, >> while the others all seem to support event.which. I was hoping Prototype >> would have a browser-independent solution (perhaps populating event.which >> from event.keyCode or vice-versa) but I can find nothing in the API docs >> or >> the code. >> >> Any chance that a browser-independent solution can be added to 1.5.2 so >> we >> don't have to write a cross-browser method ourselves? >> >> Or is one already there, and I'm just missing it? > > i use event.keyCode and it works on safari, ff, ie and opera. hope that > helps > > Paul > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
