diff --git a/packages/ui/src/components/editor/panels/Hierarchy/container/index.tsx b/packages/ui/src/components/editor/panels/Hierarchy/container/index.tsx index 09252525c2..ce27956fd9 100644 --- a/packages/ui/src/components/editor/panels/Hierarchy/container/index.tsx +++ b/packages/ui/src/components/editor/panels/Hierarchy/container/index.tsx @@ -173,6 +173,14 @@ function HierarchyPanelContents(props: { sceneURL: string; rootEntity: Entity; i } }) + useHotkeys(`${cmdOrCtrlString}+r`, (e) => { + e.preventDefault() + const selectedEntities = SelectionState.getSelectedEntities() + for (const entity of selectedEntities) { + onRenameNode(entity) + } + }) + const MemoTreeNode = useCallback( (props: HierarchyTreeNodeProps) => ( onRenameNode(contextSelectedItem!)} + endIcon={cmdOrCtrlString + ' + r'} > {t('editor:hierarchy.lbl-rename')}