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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -