diff --git a/packages/excalidraw/components/HintViewer.tsx b/packages/excalidraw/components/HintViewer.tsx index 39870a34d..93cc167bf 100644 --- a/packages/excalidraw/components/HintViewer.tsx +++ b/packages/excalidraw/components/HintViewer.tsx @@ -1,6 +1,7 @@ import { CANVAS_SEARCH_TAB, DEFAULT_SIDEBAR } from "@excalidraw/common"; import { + isArrowElement, isFlowchartNodeElement, isImageElement, isLinearElement, @@ -37,6 +38,13 @@ const getHints = ({ const { activeTool, isResizing, isRotating, lastPointerDownWith } = appState; const multiMode = appState.multiElement !== null; + if ( + appState.selectedLinearElement?.isDragging || + isArrowElement(appState.newElement) + ) { + return t("hints.arrowBindModifiers"); + } + if ( appState.openSidebar?.name === DEFAULT_SIDEBAR.name && appState.openSidebar.tab === CANVAS_SEARCH_TAB && diff --git a/packages/excalidraw/locales/en.json b/packages/excalidraw/locales/en.json index b89e8ae5b..9c8d813d6 100644 --- a/packages/excalidraw/locales/en.json +++ b/packages/excalidraw/locales/en.json @@ -332,6 +332,7 @@ "dismissSearch": "Escape to dismiss search", "canvasPanning": "To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool", "linearElement": "Click to start multiple points, drag for single line", + "arrowBindModifiers": "Hold Alt to bind inside, or CtrlOrCmd to disable binding", "arrowTool": "Click to start multiple points, drag for single line. Press {{arrowShortcut}} again to change arrow type.", "freeDraw": "Click and drag, release when you're finished", "text": "Tip: you can also add text by double-clicking anywhere with the selection tool",