You can use javascript to remap keys on an adhoc basis. I use this to disable the enter key in a form so it's not inadvertantly submitted - submit button must be used.
// disable the enter key so it no longer submits the form
function checkCR(evt) {
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
}
document.onkeypress = checkCR; // attach the function to the onkeypress event
Steve
"I am a licenced motorcycle instructor, I agree with dangerousbastard, no point in repeating what he said."
"read what Steve says. He's right."
"What Steve said pretty much summed it up."
"I did axactly as you said and it worked...!!"
"Wow, Great advise there DB."
WTB: Hyosung bikes or going or not.
Bookmarks