Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

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

Aakansha Doshic03845bac384
diff --git a/src/components/HelpDialog.tsx b/src/components/HelpDialog.tsx
index 68678b777b..5803fbe0ca 100644
--- a/src/components/HelpDialog.tsx
+++ b/src/components/HelpDialog.tsx
@@ -154,7 +154,7 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
<Shortcut label={t("toolBar.line")} shortcuts={["P", "6"]} />
<Shortcut
label={t("toolBar.freedraw")}
- shortcuts={["X", "7"]}
+ shortcuts={["Shift + P", "X", "7"]}
/>
<Shortcut label={t("toolBar.text")} shortcuts={["T", "8"]} />
<Shortcut label={t("toolBar.image")} shortcuts={["9"]} />
diff --git a/src/shapes.tsx b/src/shapes.tsx
index c4b98a851f..c54ef20e12 100644
--- a/src/shapes.tsx
+++ b/src/shapes.tsx
@@ -80,7 +80,7 @@ export const SHAPES = [
</svg>
),
value: "freedraw",
- key: KEYS.X,
+ key: [KEYS.X, KEYS.P.toUpperCase()],
},
{
icon: (