diff --git a/packages/excalidraw/actions/actionLinearEditor.tsx b/packages/excalidraw/actions/actionLinearEditor.tsx index a558fa836..34984238a 100644 --- a/packages/excalidraw/actions/actionLinearEditor.tsx +++ b/packages/excalidraw/actions/actionLinearEditor.tsx @@ -97,6 +97,8 @@ export const actionToggleLinearEditor = register({ export const actionToggleLoopLock = register({ name: "toggleLoopLock", category: DEFAULT_CATEGORIES.elements, + icon: polygonIcon, + keywords: ["loop"], label: (elements, appState, app) => { const selectedElements = app.scene.getSelectedElements({ selectedElementIds: appState.selectedElementIds, diff --git a/packages/excalidraw/components/CommandPalette/CommandPalette.tsx b/packages/excalidraw/components/CommandPalette/CommandPalette.tsx index 60289cfa1..4ea68054f 100644 --- a/packages/excalidraw/components/CommandPalette/CommandPalette.tsx +++ b/packages/excalidraw/components/CommandPalette/CommandPalette.tsx @@ -293,6 +293,7 @@ function CommandPaletteInner({ actionManager.actions.decreaseFontSize, actionManager.actions.toggleLinearEditor, actionManager.actions.cropEditor, + actionManager.actions.toggleLoopLock, actionLink, actionCopyElementLink, actionLinkToElement,