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

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

Issue 360423002: Allow WebContents key handling to supplant extension overrides of the bookmark shortcut (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: address comments Created 6 years, 6 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
new file mode 100644
index 0000000000000000000000000000000000000000..f946bf0e27b62c0a2f62c523062b65c6f474850a
--- /dev/null
+++ b/chrome/test/data/extensions/test_file_with_ctrl-d_keybinding.html
@@ -0,0 +1,17 @@
+<head>
+ <script type="text/javascript">
+var ctrlDown = false;
+document.onkeyup = function(e) {
+ if (e.keyCode == 17)
+ ctrlDown = false;
+}
+document.onkeydown = function(e) {
+ if (e.keyCode == 17)
+ ctrlDown = true;
+ else if (String.fromCharCode(e.keyCode) == 'D' && ctrlDown) {
+ document.body.bgColor = "magenta";
+ return false;
+ }
+};
+ </script>
+</head>
« chrome/browser/ui/extensions/accelerator_priority.cc ('K') | « chrome/chrome_browser_ui.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698