[devtools] fix issue with ctrl+c handling

See https://repo.palemoon.org/MoonchildProductions/Pale-Moon/issues/1961
This commit is contained in:
Moonchild 2024-04-10 15:06:49 +02:00 committed by roytam1
commit 0c02971a44

View file

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