5 window
.onload = function() {
6 document
.getElementById("myinput").focus();
9 function keyDown(event
)
11 var output
= document
.getElementById("console");
12 var text
= "shiftKey = "+event
.shiftKey
+ ", altKey = "+event
.altKey
+ ", which = "+ event
.which
;
14 if (event
.shiftKey
== true && event
.altKey
== true && event
.which
== 18) {
15 text
= text
+ "<br>TEST : <b>PASSED</b>"
17 text
= text
+ "<br>TEST : <b>FAILED</b>"
19 output
.innerHTML
= text
;
25 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=111112">bug
111112</a>:
26 Shift + Alt key press
</p>
28 <p>Try press Shift then alt key.
29 The test passes if the shiftKey, altKey values of JsKeyEvent are true and keycode/which is
18.
<p>
31 <input type=
"text" id=
"myinput" onkeydown=
"keyDown(event)">
33 <div id=
"console"></div>