disallow shape selection during creation (#449)
This commit is contained in:
parent
61be0f7b61
commit
0097652b79
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user