mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user