mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-26 01:50:08 +00:00
23 lines
653 B
HTML
23 lines
653 B
HTML
<!DOCTYPE html>
|
|
<input id="input1" />
|
|
<input id="input2" />
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let input1 = document.getElementById("input1");
|
|
let input2 = document.getElementById("input2");
|
|
|
|
input1.addEventListener("keydown", e => {
|
|
println(`input1 keydown ${e.key}`);
|
|
});
|
|
input2.addEventListener("keydown", e => {
|
|
println(`input2 keydown ${e.key}`);
|
|
});
|
|
|
|
internals.sendKey(input1, "Tab");
|
|
printElement(document.activeElement);
|
|
|
|
internals.sendKey(input2, "Tab");
|
|
printElement(document.activeElement);
|
|
});
|
|
</script>
|