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

Unified Diff: Source/devtools/front_end/inspector.js

Issue 101933006: [DevTools] Inspector should allow resetting zoom level using the numpad0 key. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/inspector.js
diff --git a/Source/devtools/front_end/inspector.js b/Source/devtools/front_end/inspector.js
index 53783037d6e1f424265cb7192566a0b98ccf8dfd..93d872ef14b0772c1d80715e7c5df9e9dfd3a483 100644
--- a/Source/devtools/front_end/inspector.js
+++ b/Source/devtools/front_end/inspector.js
@@ -698,6 +698,7 @@ WebInspector.documentKeyDown = function(event)
}
break;
case 48: // 0
+ case 96: // Numpad 0
// Zoom reset shortcut does not allow "Shift" when handled by the browser.
if (isValidZoomShortcut && !event.shiftKey) {
WebInspector._resetZoom();
« 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