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

Unified Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 413413003: DevTools: [Elements] Do not copy nodes if there is a non-collapsed selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698