feat: Support special key shortcut highlight

This commit is contained in:
Mark Tolmacs
2025-10-21 21:03:45 +02:00
parent 2b695050f2
commit 27f4e55945
2 changed files with 5 additions and 2 deletions

View File

@@ -46,7 +46,10 @@ const getHints = ({
appState.selectedLinearElement?.isDragging ||
isArrowElement(appState.newElement)
) {
return t("hints.arrowBindModifiers");
return t("hints.arrowBindModifiers", {
shortcut_1: getTaggedShortcutKey("Alt"),
shortcut_2: getTaggedShortcutKey("CtrlOrCmd"),
});
}
if (

View File

@@ -341,7 +341,7 @@
"canvasPanning": "To move canvas, hold {{shortcut_1}} or {{shortcut_2}} while dragging, or use the hand tool",
"linearElement": "Click to start multiple points, drag for single line",
"arrowTool": "Click to start multiple points, drag for single line. Press {{shortcut}} again to change arrow type.",
"arrowBindModifiers": "Hold Alt to bind inside, or CtrlOrCmd to disable binding",
"arrowBindModifiers": "Hold {{shortcut_1}} to bind inside, or {{shortcut_2}} to disable binding",
"freeDraw": "Click and drag, release when you're finished",
"text": "Tip: you can also add text by double-clicking anywhere with the selection tool",
"embeddable": "Click-drag to create a website embed",