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
on 2008-07-13 03:55
on 2008-07-13 04:11
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 2008-07-13 08:11
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