diff --git a/Editor/Localization/LocalizationTableWindow/TreeView/TableSheetTreeView.cs b/Editor/Localization/LocalizationTableWindow/TreeView/TableSheetTreeView.cs index ae81fcc..4eec34b 100644 --- a/Editor/Localization/LocalizationTableWindow/TreeView/TableSheetTreeView.cs +++ b/Editor/Localization/LocalizationTableWindow/TreeView/TableSheetTreeView.cs @@ -152,6 +152,12 @@ namespace AlicizaX.Localization.Editor ContextSelectedID = -1; Reload(); }); + menu.AddItem(new GUIContent("Copy"), false, () => + { + CopyEntryToBiliboard(parentSection.Section, item.Item); + ContextSelectedID = -1; + Reload(); + }); } menu.ShowAsContext(); @@ -428,6 +434,15 @@ namespace AlicizaX.Localization.Editor Reload(); } + + private void CopyEntryToBiliboard(SheetSectionTreeView section, SheetItemTreeView sheetItem) + { + if (!HasFocus()) + return; + string combineKey = $"{section.Name}.{sheetItem.Key}"; + GUIUtility.systemCopyBuffer = combineKey; + } + private void DeleteLstrEntry(SheetSectionTreeView section, SheetItemTreeView sheetItem) { if (!HasFocus())