Explorar o código

disallow shape selection during creation (#449)

David Luzar %!s(int64=5) %!d(string=hai) anos
pai
achega
0097652b79
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/index.tsx

+ 1 - 2
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") {