Chromium Code Reviews| 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 a0137429fef72b7c1cfb7563dfce843287883482..f2dfafbf915fe0379db20fb906eed80bf705e3da 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/ShortcutRegistry.js |
| @@ -90,7 +90,7 @@ WebInspector.ShortcutRegistry.prototype = { |
| var actions = this._applicableActions(key); |
| if (!actions.length) |
| return; |
| - if (WebInspector.GlassPane.DefaultFocusedViewStack.length > 1) { |
| + if (!!WebInspector.Dialog.hasInstance()) { |
|
pfeldman
2016/05/02 18:50:24
no need for !!
|
| if (event && !isPossiblyInputKey()) |
| event.consume(true); |
| return; |