In Non-IE browser, Flow Action is submitted when pressing the Enter Key
Upon hitting the enter key on a text input field, the flow action is getting submitted in Non-IE browser. Using 6.3 SP1
The below code works fine in IE but not in Chrome/FF.
function disableEnterKey(e)
{
var key;
if(window.event)
key = window.event.keyCode;
if(key == 13)
return false;
else
return true;
}
document.onkeydown = disableEnterKey;