OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <meta http-equiv="x-ua-compatible" content="chrome=1" /> | |
4 <title>ChromeFrame keyevent test</title> | |
5 <script type="text/javascript" | |
6 src="chrome_frame_tester_helpers.js"></script> | |
7 | |
8 <script type="text/javascript"> | |
9 var input_string = ""; | |
10 | |
11 function OnKeyPress() { | |
12 appendStatus("Key pressed: " + | |
13 String.fromCharCode(event.keyCode).toString()); | |
14 input_string += String.fromCharCode(event.keyCode).toString(); | |
15 | |
16 if (input_string.length >= 6) { | |
17 appendStatus("Sending message: " + input_string); | |
18 window.externalHost.postMessage(input_string); | |
19 } | |
20 } | |
21 </script> | |
22 </head> | |
23 | |
24 <body onkeypress="OnKeyPress()"> | |
25 ChromeFrame full tab mode keyboard test. Verifies that keypress events make | |
26 it correctly into ChromeFrame. | |
27 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | |
28 Keyboard test running.... | |
29 </div> | |
30 </body> | |
31 </html> | |
OLD | NEW |