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(...);
Comments
Post a Comment