Index: chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html |
diff --git a/chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html b/chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html |
index f946bf0e27b62c0a2f62c523062b65c6f474850a..a032c6889bda58cd4cdf71430e35db4bc0793c15 100644 |
--- a/chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html |
+++ b/chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html |
@@ -2,13 +2,15 @@ |
<script type="text/javascript"> |
var ctrlDown = false; |
document.onkeyup = function(e) { |
- if (e.keyCode == 17) |
+ // Ctrl is 17, left Command is 91, right Command is 93 |
+ if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) |
ctrlDown = false; |
} |
document.onkeydown = function(e) { |
- if (e.keyCode == 17) |
+ // Ctrl is 17, left Command is 91, right Command is 93 |
+ if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93) { |
ctrlDown = true; |
- else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) { |
+ } else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) { |
document.body.bgColor = "magenta"; |
return false; |
} |