IE, Chrome, and Safari work. However Firefox gives an error on this method. I’m trying to get the actual message as it disappeared. I will post it, but for now I can’t hit enter on my forms. Here is the method it pointed to:
13 is the enter key
function bind_enter_key(evt, callback)
{
if(event.keyCode===13)
{
callback();
return false;
}
}
Call to bind_enter_key here:
set_onkeypress('signup_pass', function(event){return bind_enter_key(event, interface_signup);});
set_onkeypress('signin_pass', function(event){return bind_enter_key(event, interface_signin);});
Change
to
and call the function with
You named the parameter
evtin your function signature, but you are not using it. It works in the other browsers because for some reason they provide theeventobject aswindow.eventlike IE is doing. But Firefox does not, henceeventisundefinedinsidebind_enter_key.