mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-10-24 00:14:25 +02:00
feat: Support special key shortcut highlight
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user