Index: third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js |
index 17b212fcbaf6b19ca87d8febec8a17f448b229b2..fb9e76c39b063a10a9ccf9f031e878baa5848546 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js |
@@ -242,7 +242,11 @@ WebInspector.UISourceCodeFrame.prototype = { |
{ |
contextMenu.appendApplicableItems(this._uiSourceCode); |
contextMenu.appendApplicableItems(new WebInspector.UILocation(this._uiSourceCode, lineNumber, columnNumber)); |
- contextMenu.appendSeparator(); |
+ var textSelection = this._textEditor.selection(); |
+ if (textSelection && !textSelection.isEmpty()) { |
+ var rangeWithContent = new WebInspector.TextRangeWithContent(textSelection, this._textEditor.copyRange(textSelection)); |
dgozman
2016/08/15 21:31:03
Let's extract content via callback.
|
+ contextMenu.appendApplicableItems(rangeWithContent); |
dgozman
2016/08/15 21:31:03
So, shortcuts don't work anymore?
|
+ } |
} |
return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this, contextMenu, lineNumber, columnNumber) |