IE9 control keyboard buttons -
i trying make form submit tab button.
it working on ff, ie8, on ie9 cannot stop default action.
i found answer here: how convert enter tab (with focus change) in ie9? worked in ie8
but cannot implement it.
could explain "fix" ie9 should add script work.
thank you
function checkcode(e) { var keycode; if(!e) e = window.event; if(e.keycode) keycode = e.keycode; else keycode = e.charcode; if(keycode == 9 || keycode == 13) { e.preventdefault(); //problem here alert(keycode); return false; } else return true; }
problem in ie onkeypress not return keycodes ctrl, shift or tab, onkeydown done trick.
Comments
Post a Comment