VirtualBox

Ticket #1296: vboxbug-reproduce.html

File vboxbug-reproduce.html, 841 bytes (added by Carlo Capocasa, 17 years ago)

Reproduction Code

Line 
1<div style="font-size:11px;font-family:Arial;width:250px;">
2 To reproduce, please press and hold any key. Correct behavior for key repeat: Either only keypress events
3 or both keypress and keydown. In no case should keyup be generated as a key repeat, which is what happens
4 in VirtualBox 1.5.0 OSE on a linux host with a Windows XP guest.
5</div>
6<br />
7<div id="out" style="height:600px;width:300px; border:1px gray dashed;overflow:auto;font-family:Arial; font-size:10px; color: gray;">
8</textarea>
9
10<script type="text/javascript">
11
12 document.onkeydown = function () { document.getElementById('out').innerHTML += 'keydown<br />' };
13 document.onkeyup = function () { document.getElementById('out').innerHTML += 'keyup<br />' };
14 document.onkeypress = function () { document.getElementById('out').innerHTML += 'keypress<br />' };
15
16</script>
17

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy