javascript - use alt + shift + a as a hotkey in IE 7/8 -


i trying attach keyup listener on document object. wanna know when user presses alt + shift + a or alt + shift + w. both work in chrome , firefox. in ie, alt + shift + w works, alt + shift + a doesn't. know ie has few hot keys reserved, why taking on alt + shift combination, too? there way prevent or flow in ie?

demo: http://jsfiddle.net/hnd5e/

thanks

you can around behavior keydown event.

$(document).keydown(function (e) {             if (e.keycode == 65 && e.altkey) {                  e.preventdefault();             }         }).keyup(...); 

http://jsfiddle.net/hnd5e/4/


Comments

Popular posts from this blog

Python __call__ special method practical example -

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -