3 <p>This page is especially useful to test
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=5678">the shift-Tab issue
</a>. Should see a code of
9.
</p>
5 Type here:
<input id=
"field" type=
"text" />
7 <script language=
"javascript" type=
"text/javascript">
9 function logEvent(event
) {
12 myDebugLog("event.charCode: " + event
.charCode
);
14 myDebugLog("event.which: " + event
.which
);
16 myDebugLog("event.keyCode: " + event
.keyCode
);
17 myDebugLog("shiftKey: " + event
.shiftKey
);
21 function myDebugLog(msg
) {
22 var m
= document
.createElement("div");
23 m
.appendChild(document
.createTextNode(msg
));
24 document
.getElementById("debug-log").appendChild(m
);
26 document
.f
.field
.onkeypress
= logEvent
;