Forum: Rails Spinoffs (closed, excessive spam) ajax.autocomplete - avoid insert when pressing the tab key?

Posted by z0ika (Guest)
on 2008-07-13 03:55
(Received via mailing list)
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
Posted by z0ika (Guest)
on 2008-07-13 04:11
(Received via mailing list)
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
Posted by T.J. Crowder (Guest)
on 2008-07-13 08:11
(Received via mailing list)
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@googlegroups.com

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
This topic is locked and can not be replied to.