chore: upgrade keyboard shortcuts and context menus to use non-deprecated APIs (#7352)

* chore: remove references to clipboard.copy in shortcuts

* chore: remove references to clipboard.copy in context menus

* chore: fix tests

* chore: format

* fix: PR comments
This commit is contained in:
Beka Westberg
2023-08-11 09:38:50 -07:00
committed by GitHub
parent a901c62d0c
commit e30c4acd92
6 changed files with 38 additions and 27 deletions

View File

@@ -297,7 +297,9 @@ export function commentDuplicateOption(
text: Msg['DUPLICATE_COMMENT'],
enabled: true,
callback: function () {
clipboard.duplicate(comment);
const data = comment.toCopyData();
if (!data) return;
clipboard.paste(data, comment.workspace);
},
};
return duplicateOption;