Hello! I would like to avoid inserting objects, when the tab <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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
z0ika
2008-Jul-13 02:11 UTC
Re: ajax.autocomplete - avoid insert when pressing the tab key?
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 <matthias.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
T.J. Crowder
2008-Jul-13 06:11 UTC
Re: ajax.autocomplete - avoid insert when pressing the tab key?
Hi, We''ve started transitioning to a new, better-named, hopefully-spam- free group for Prototype and script.aculo.us: http://groups.google.com/group/prototype-scriptaculous/ prototype-scriptaculous-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Could you please post your question there instead? Thanks! People might still answer here, but probably not for all that much longer... -- T.J. Crowder tj / crowder software / com On Jul 13, 3:11 am, z0ika <matthias.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 <matthias.so...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---