Add curved lines/arrows shortcuts (#1274)

This commit is contained in:
Lipis 2020-04-06 17:26:05 +03:00 committed by GitHub
parent 854af8aed2
commit 0c41f3e7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -76,7 +76,7 @@ const ShortcutKey = (props: { children: React.ReactNode }) => (
style={{
border: "1px solid #ced4da",
padding: "2px 8px",
margin: "0 8px",
margin: "0 4px",
backgroundColor: "#e9ecef",
borderRadius: "2px",
fontSize: "0.8em",
@ -150,6 +150,14 @@ export const ShortcutsDialog = ({ onClose }: { onClose?: () => void }) => {
<Shortcut title={t("toolBar.arrow")} shortcuts={["A", "5"]} />
<Shortcut title={t("toolBar.line")} shortcuts={["L", "6"]} />
<Shortcut title={t("toolBar.text")} shortcuts={["T", "7"]} />
<Shortcut
title={t("shortcutsDialog.curvedArrow")}
shortcuts={["A", "click", "click", "click"]}
/>
<Shortcut
title={t("shortcutsDialog.curvedLine")}
shortcuts={["L", "click", "click", "click"]}
/>
<Shortcut title={t("toolBar.lock")} shortcuts={["Q"]} />
</ShortcutIsland>
<ShortcutIsland title={t("shortcutsDialog.editor")}>

View File

@ -133,6 +133,8 @@
"shortcutsDialog": {
"title": "Keyboard shortcuts",
"shapes": "Shapes",
"curvedArrow": "Curved arrow",
"curvedLine": "Curved line",
"editor": "Editor",
"view": "View",
"blog": "Read our blog",