| window.onload = function() { |
| document.getElementById("myinput").focus(); |
| 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>" |
| text = text + "<br>TEST : <b>FAILED</b>" |
| <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)"> |