Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / test_file_with_ctrl-d_keybinding.html
blob7848c98d621261aa9195a348b6550fa9d38e9e57
1 <head>
2 <script type="text/javascript">
3 var ctrlDown = false;
4 document.onkeyup = function(e) {
5 // Ctrl is 17, left Command is 91, right Command is 93
6 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93)
7 ctrlDown = false;
9 document.onkeydown = function(e) {
10 // Ctrl is 17, left Command is 91, right Command is 93
11 if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) {
12 ctrlDown = true;
13 } else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) {
14 window.domAutomationController.setAutomationId(0);
15 window.domAutomationController.send('web page received');
16 return false;
19 </script>
20 </head>