pepe wrote:
> You can add Javascript to check for the value of the key pressed and
> ignore it if it is the Enter key. I had to do the exact same thing for
> the Backspace key not long ago, which was working as the Back icon in
> some instances.
>
> I have a sample but not here. I could give it to you if you still need
> it tonight when I get home.
>
> Pepe
document.onkeypress = function(e) {
if (e.keyCode == 13) {
return false;
}
key code value is 13 for "Enter"
if you give return false,
it will disable the default property of Key.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---