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.shiftKey &&
|
||||||
!event.altKey &&
|
!event.altKey &&
|
||||||
!event.metaKey &&
|
!event.metaKey &&
|
||||||
(this.state.draggingElement === null ||
|
this.state.draggingElement === null
|
||||||
this.state.elementType !== "selection")
|
|
||||||
) {
|
) {
|
||||||
this.setState({ elementType: findShapeByKey(event.key) });
|
this.setState({ elementType: findShapeByKey(event.key) });
|
||||||
} else if (event[KEYS.META] && event.code === "KeyZ") {
|
} else if (event[KEYS.META] && event.code === "KeyZ") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user