mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 900186 - Fix the copy command in the Metro JS console [r=jimm]
This commit is contained in:
parent
68cd71548c
commit
cb6e0c7815
@ -68,6 +68,8 @@ var ContextCommands = {
|
||||
|
||||
SelectionHelperUI.closeEditSession(true);
|
||||
}
|
||||
} else if (ContextMenuUI.popupState.string) {
|
||||
this.clipboard.copyString(ContextMenuUI.popupState.string, this.docRef);
|
||||
} else {
|
||||
// chrome
|
||||
target.editor.copy();
|
||||
|
@ -243,7 +243,9 @@ let ConsolePanelView = {
|
||||
target: row,
|
||||
json: {
|
||||
types: ["copy"],
|
||||
string: text
|
||||
string: text,
|
||||
xPos: aEvent.clientX,
|
||||
yPos: aEvent.clientY
|
||||
}
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user