Javascript keyevent and JAWS screen reader
问题 I have an application that does something (eg alert) each time a spacebar is pressed. This works fine if I am not using JAWS screen reader. However, once I load JAWS screen reader, it does not execute alert when I press the spacebar. I need to use JAWS so I need this to work. Here is the code snippet. $(document).keypress(function(event) { var chCode = ('charCode' in event) ? event.charCode : event.keyCode; if (chCode == 32){ //32 is keyCode for spacebar alert("spacebars!!!"); } }); From my