blob: 47e108e373e05ebd8038d993a933946bb5cbd1c1 [file] [log] [blame]
<html>
<head>
<script>
function keyevent(event) {
var p = document.createElement("p");
p.appendChild(document.createTextNode(event.type + " - key: " + event.keyIdentifier + "@" + event.location + " (keyCode/charCode: " + event.keyCode + "/" + event.charCode + ")" + " modifiers: " + event.ctrlKey + "," + event.altKey + "," + event.shiftKey + "," + event.metaKey));
document.getElementById("result").appendChild(p);
}
function init() {
var input = document.getElementById("testinput");
input.addEventListener("keydown", keyevent, true);
input.addEventListener("keypress", keyevent, true);
input.addEventListener("keyup", keyevent, true);
if (window.testRunner)
testRunner.dumpAsText();
if (window.eventSender)
eventSender.fireKeyboardEventsToElement(input);
}
</script>
</head>
<body onload="init()">
<form>
<input type="text" size="50" id="testinput" />
</form>
<p>This tests that DOMKeyboardEvents are created correctly in the ObjC API. See bug <a href="https://bugs.webkit.org/show_bug.cgi?id=9736">9736</a>.</p>
<div id="result"></div>
</body>
</html>