зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
366 B
HTML
17 строки
366 B
HTML
<!DOCTYPE HTML><html><head>
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
|
</head>
|
|
<body>
|
|
<textarea></textarea>
|
|
<script>
|
|
var t = document.querySelector("textarea");
|
|
t.focus();
|
|
|
|
synthesizeKey("a", {});
|
|
synthesizeKey("A", {accelKey: true});
|
|
synthesizeKey("VK_RIGHT", {});
|
|
synthesizeKey("b", {});
|
|
</script>
|
|
</body>
|
|
</html>
|