feat: use enter to edit line points & update hints (#9630)

feat: use enter to edit line points & update hints
This commit is contained in:
David Luzar
2025-06-07 18:05:20 +02:00
committed by GitHub
parent 08cd4c4f9a
commit d4e85a9480
4 changed files with 39 additions and 4 deletions
@@ -4,6 +4,7 @@ import {
isFlowchartNodeElement,
isImageElement,
isLinearElement,
isLineElement,
isTextBindableContainer,
isTextElement,
} from "@excalidraw/element";
@@ -138,7 +139,9 @@ const getHints = ({
? t("hints.lineEditor_pointSelected")
: t("hints.lineEditor_nothingSelected");
}
return t("hints.lineEditor_info");
return isLineElement(selectedElements[0])
? t("hints.lineEditor_line_info")
: t("hints.lineEditor_info");
}
if (
!appState.newElement &&