| <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> |
| Type here: <input id="field" type="text" /> |
| <script language="javascript" type="text/javascript"> |
| function logEvent(event) { |
| myDebugLog("event.charCode: " + event.charCode); |
| myDebugLog("event.which: " + event.which); |
| myDebugLog("event.keyCode: " + event.keyCode); |
| myDebugLog("shiftKey: " + event.shiftKey); |
| function myDebugLog(msg) { |
| var m = document.createElement("div"); |
| m.appendChild(document.createTextNode(msg)); |
| document.getElementById("debug-log").appendChild(m); |
| document.f.field.onkeypress = logEvent; |