fix: split "Edit selected shape" shortcut (#6457)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Aurélie 2023-04-14 23:34:26 +02:00 committed by GitHub
parent 6164b5273c
commit b0b23353cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View File

@ -165,11 +165,12 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
shortcuts={[KEYS.E, KEYS["0"]]} shortcuts={[KEYS.E, KEYS["0"]]}
/> />
<Shortcut <Shortcut
label={t("helpDialog.editSelectedShape")} label={t("helpDialog.editLineArrowPoints")}
shortcuts={[ shortcuts={[getShortcutKey("CtrlOrCmd+Enter")]}
getShortcutKey("CtrlOrCmd+Enter"), />
getShortcutKey(`CtrlOrCmd + ${t("helpDialog.doubleClick")}`), <Shortcut
]} label={t("helpDialog.editText")}
shortcuts={[getShortcutKey("Enter")]}
/> />
<Shortcut <Shortcut
label={t("helpDialog.textNewLine")} label={t("helpDialog.textNewLine")}

View File

@ -319,7 +319,8 @@
"doubleClick": "double-click", "doubleClick": "double-click",
"drag": "drag", "drag": "drag",
"editor": "Editor", "editor": "Editor",
"editSelectedShape": "Edit selected shape (text/arrow/line)", "editLineArrowPoints": "Edit line/arrow points",
"editText": "Edit text / add label",
"github": "Found an issue? Submit", "github": "Found an issue? Submit",
"howto": "Follow our guides", "howto": "Follow our guides",
"or": "or", "or": "or",