update hints

This commit is contained in:
dwelle 2025-09-14 14:47:54 +02:00
parent b1006e2bfd
commit 7172006d1b
2 changed files with 9 additions and 0 deletions

View File

@ -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 &&

View File

@ -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",