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

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

Issue 18835002: DevTools extensions: forward keyboard shortcuts to DevTools (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/devtools/front_end/externs.js ('k') | 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 052fd927fb71a1255ff1bf79b60c5f41bd523620..bfe21125783aa7eaa313ae7f57f21c85a8c9747c 100644
--- a/Source/devtools/front_end/inspector.js
+++ b/Source/devtools/front_end/inspector.js
@@ -833,10 +833,12 @@ WebInspector.documentKeyDown = function(event)
WebInspector.postDocumentKeyDown = function(event)
{
+ var Esc = "U+001B";
+
if (event.handled)
return;
- if (event.keyCode === WebInspector.KeyboardShortcut.Keys.Esc.code) {
+ if (event.keyIdentifier === Esc) {
if (WebInspector.searchController.isSearchVisible()) {
WebInspector.searchController.closeSearch();
return;
« no previous file with comments | « Source/devtools/front_end/externs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698