2 <script type=
"text/javascript">
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)
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) {
13 } else if (String
.fromCharCode(e
.keyCode
) == 'D' && ctrlDown
) {
14 window
.domAutomationController
.setAutomationId(0);
15 window
.domAutomationController
.send('web page received');