Index: third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js b/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
index ae3e4b3622630a6b86e95eec201f592c56004c31..604bf2cfc493402f94174c142da0822c82dbe14e 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
@@ -76,15 +76,15 @@ WebInspector.ShortcutRegistry.prototype = { |
*/ |
handleShortcut: function(event) |
{ |
- this.handleKey(WebInspector.KeyboardShortcut.makeKeyFromEvent(event), event.keyIdentifier, event); |
+ this.handleKey(WebInspector.KeyboardShortcut.makeKeyFromEvent(event), event.key, event); |
}, |
/** |
* @param {number} key |
- * @param {string} keyIdentifier |
+ * @param {string} domKey |
* @param {!KeyboardEvent=} event |
*/ |
- handleKey: function(key, keyIdentifier, event) |
+ handleKey: function(key, domKey, event) |
{ |
var keyModifiers = key >> 8; |
var actions = this._applicableActions(key); |
@@ -123,7 +123,7 @@ WebInspector.ShortcutRegistry.prototype = { |
*/ |
function isPossiblyInputKey() |
{ |
- if (!event || !WebInspector.isEditing() || /^F\d+|Control|Shift|Alt|Meta|Win|U\+001B$/.test(keyIdentifier)) |
+ if (!event || !WebInspector.isEditing() || /^F\d+|Control|Shift|Alt|Meta|Escape|Win|U\+001B$/.test(domKey)) |
return false; |
if (!keyModifiers) |