Make composer/eventList ctrl-c work again

This commit is contained in:
miruka
2020-03-26 21:23:43 -04:00
parent a61f1d5d04
commit 18f53829d9
6 changed files with 37 additions and 31 deletions

View File

@@ -196,18 +196,7 @@ HColumnLayout {
return
}
if (eventContent.selectedText) {
Clipboard.text = eventContent.selectedText
return
}
const contents = []
for (const model of eventList.getSortedCheckedDelegates()) {
contents.push(JSON.parse(model.source).body)
}
Clipboard.text = contents.join("\n\n")
eventList.copySelectedDelegates()
}
}