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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -