Bug 900186 - Fix the copy command in the Metro JS console [r=jimm]

This commit is contained in:
Matt Brubeck 2013-08-01 15:48:14 -07:00
parent 68cd71548c
commit cb6e0c7815
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -243,7 +243,9 @@ let ConsolePanelView = {
target: row,
json: {
types: ["copy"],
string: text
string: text,
xPos: aEvent.clientX,
yPos: aEvent.clientY
}
});
},