<!DOCTYPE html> <html> <head> <script> window.onload = function() { document.getElementById("myinput").focus(); }; function keyDown(event) { var output = document.getElementById("console"); var text = "shiftKey = "+event.shiftKey+ ", altKey = "+event.altKey+ ", which = "+ event.which; if (event.shiftKey == true && event.altKey == true && event.which == 18) { text = text + "<br>TEST : <b>PASSED</b>" } else { text = text + "<br>TEST : <b>FAILED</b>" } output.innerHTML = text; } </script> </head> <body> <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=111112">bug 111112</a>: Shift + Alt key press</p> <p>Try press Shift then alt key. The test passes if the shiftKey, altKey values of JsKeyEvent are true and keycode/which is 18.<p> <input type="text" id="myinput" onkeydown="keyDown(event)"> <br><br> <div id="console"></div> </body> </html>