From 0097652b792ee92573c08660337b3c6c827cfcd6 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Mon, 20 Jan 2020 00:27:00 +0100 Subject: [PATCH] disallow shape selection during creation (#449) --- src/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 4d117351a..e0c597214 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -299,8 +299,7 @@ export class App extends React.Component<{}, AppState> { !event.shiftKey && !event.altKey && !event.metaKey && - (this.state.draggingElement === null || - this.state.elementType !== "selection") + this.state.draggingElement === null ) { this.setState({ elementType: findShapeByKey(event.key) }); } else if (event[KEYS.META] && event.code === "KeyZ") {