Chromium Code Reviews| Index: Source/devtools/front_end/elements/ElementsPanel.js |
| diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js |
| index 73a19a5d02b6f8c2b42231325f488d525a599ca7..e9a8830c6a4fe8cf70c0bc18219e3cbbaa306525 100644 |
| --- a/Source/devtools/front_end/elements/ElementsPanel.js |
| +++ b/Source/devtools/front_end/elements/ElementsPanel.js |
| @@ -1217,6 +1217,8 @@ WebInspector.ElementsPanel.prototype = { |
| */ |
| handleCopyEvent: function(event) |
| { |
| + if (!WebInspector.currentFocusElement().enclosingNodeOrSelfWithClass("elements-tree-outline")) |
|
aandrey
2014/07/29 13:38:25
WebInspector.currentFocusElement() can return unde
|
| + return; |
| var treeOutline = this._treeOutlineForNode(this.selectedDOMNode()); |
| if (treeOutline) |
| treeOutline.handleCopyOrCutKeyboardEvent(false, event); |