fix: support shift+P for freedraw (#4550)

* fix: support shift+P for freedraw

* newline

* show shift+p first
This commit is contained in:
Aakansha Doshi 2022-01-08 18:01:22 +05:30 committed by GitHub
parent d5a6014076
commit c03845bac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
<Shortcut label={t("toolBar.line")} shortcuts={["P", "6"]} /> <Shortcut label={t("toolBar.line")} shortcuts={["P", "6"]} />
<Shortcut <Shortcut
label={t("toolBar.freedraw")} label={t("toolBar.freedraw")}
shortcuts={["X", "7"]} shortcuts={["Shift + P", "X", "7"]}
/> />
<Shortcut label={t("toolBar.text")} shortcuts={["T", "8"]} /> <Shortcut label={t("toolBar.text")} shortcuts={["T", "8"]} />
<Shortcut label={t("toolBar.image")} shortcuts={["9"]} /> <Shortcut label={t("toolBar.image")} shortcuts={["9"]} />

View File

@ -80,7 +80,7 @@ export const SHAPES = [
</svg> </svg>
), ),
value: "freedraw", value: "freedraw",
key: KEYS.X, key: [KEYS.X, KEYS.P.toUpperCase()],
}, },
{ {
icon: ( icon: (