mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement document focus context and hook it up to click events.
This commit is contained in:
parent
329ba56fca
commit
84bc17e7ad
4 changed files with 57 additions and 7 deletions
7
tests/html/test_focus.html
Normal file
7
tests/html/test_focus.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<body>
|
||||
<input id="focused">
|
||||
<script>
|
||||
document.body.addEventListener('keydown', function() { alert("body"); }, false);
|
||||
document.getElementById('focused').addEventListener('keydown', function() { alert("input"); }, false);
|
||||
</script>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue