mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
[devtools] fix issue with ctrl+c handling
See https://repo.palemoon.org/MoonchildProductions/Pale-Moon/issues/1961
This commit is contained in:
parent
67bded6465
commit
0c02971a44
1 changed files with 4 additions and 0 deletions
|
|
@ -908,6 +908,10 @@ VariablesView.prototype = {
|
|||
// Copy current selection to clipboard.
|
||||
if (e.ctrlKey || e.metaKey) {
|
||||
let item = this.getFocusedItem();
|
||||
if (!item) {
|
||||
// No item is selected; do nothing.
|
||||
return;
|
||||
}
|
||||
clipboardHelper.copyString(
|
||||
item._nameString + item.separatorStr + item._valueString
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue