Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Unified Diff: chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html

Issue 388313002: mac: Allow WebContents key handling to supplant extension overrides of the bookmark shortcut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment from wittman. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..5fb1e1e67720f46aa03f2b2d43e59764955bf88b 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,13 @@
<script type="text/javascript">
var ctrlDown = false;
document.onkeyup = function(e) {
- if (e.keyCode == 17)
+ if (e.keyCode == 17 || e.keyCode == 91 || e.keyCode == 93)
Yoyo Zhou 2014/07/15 19:46:37 It would be nice to comment on what these values m
erikchen 2014/07/15 20:48:40 Done.
ctrlDown = false;
}
document.onkeydown = function(e) {
- if (e.keyCode == 17)
+ 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;
}

Powered by Google App Engine
This is Rietveld 408576698