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

Unified Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 702583003: DevTools: handle zoom shortcuts in hosted mode on Mac OS X (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/host/InspectorFrontendHost.js
diff --git a/Source/devtools/front_end/host/InspectorFrontendHost.js b/Source/devtools/front_end/host/InspectorFrontendHost.js
index 011adffffbc371743d505e7589157a54dbe51c9c..e51e3c3405e98b01051866ecb7d0bebb1d3a66fe 100644
--- a/Source/devtools/front_end/host/InspectorFrontendHost.js
+++ b/Source/devtools/front_end/host/InspectorFrontendHost.js
@@ -306,7 +306,8 @@ WebInspector.InspectorFrontendHostStub = function()
function stopEventPropagation(event)
{
// Let browser handle Ctrl+/Ctrl- shortcuts in hosted mode.
- if (event.ctrlKey && (event.keyCode === 187 || event.keyCode === 189))
+ var zoomModifier = WebInspector.isMac() ? event.metaKey : event.ctrlKey;
+ if (zoomModifier && (event.keyCode === 187 || event.keyCode === 189))
event.stopPropagation();
}
document.addEventListener("keydown", stopEventPropagation, true);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698