Ok, I've modified the controls.js now and added a 'return' after case Event.KEY_TAB: - now the Tab-key won't be handled like the return key anymore. Will this bring on any difficulties with other browsers?
onKeyPress: function(event) { if(this.active) switch(event.keyCode) { case Event.KEY_TAB: return; thank you very much! z0ika On 13 Jul., 03:55, z0ika <[EMAIL PROTECTED]> wrote: > Hello! > > I would like to avoid inserting objects, when thetab<key> has been > pressed, only the enter key should do this. is this possible? Thank > you very much! > > Cheers, > z0ika --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---