From 7c8044d27b8800cf1145bb8903842d17b58c8e62 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:36:45 -0400 Subject: [PATCH] Copy ID(s) on multiple selection Copy ID(s) on multiple selection --- .../create/entitySelectionTool/entitySelectionTool.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/system/create/entitySelectionTool/entitySelectionTool.js b/scripts/system/create/entitySelectionTool/entitySelectionTool.js index 9c377fc9e6..b3559b3a67 100644 --- a/scripts/system/create/entitySelectionTool/entitySelectionTool.js +++ b/scripts/system/create/entitySelectionTool/entitySelectionTool.js @@ -496,12 +496,15 @@ SelectionManager = (function() { that.createApp.deleteSelectedEntities(); }; - that.copyIdFromSelectedEntity = function() { - if (that.selections.length !== 1) { + that.copyIdsFromSelectedEntities = function() { + if (that.selections.length === 0) { audioFeedback.rejection(); - } else { + } else if (that.selections.length === 1) { Window.copyToClipboard(that.selections[0]); audioFeedback.confirmation(); + } else { + Window.copyToClipboard(JSON.stringify(that.selections)); + audioFeedback.confirmation(); } };