mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Multi-byte code point presses do not have a UIEvents::KeyCode value, so we would previously set the event's key field to "Unidentified".
19 lines
507 B
HTML
19 lines
507 B
HTML
<input id="input" />
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let input = document.getElementById("input");
|
|
|
|
input.addEventListener("keydown", e => {
|
|
println(`keydown ${e.key}`);
|
|
});
|
|
|
|
internals.sendText(input, "à");
|
|
internals.sendText(input, "á");
|
|
internals.sendText(input, "â");
|
|
internals.sendText(input, "ã");
|
|
internals.sendText(input, "ä");
|
|
internals.sendText(input, "å");
|
|
});
|
|
</script>
|