Disable shortcuts for shapes while dragging the selection (#447)
This commit is contained in:
parent
67aed07b72
commit
4180485eef
@ -297,7 +297,9 @@ export class App extends React.Component<{}, AppState> {
|
|||||||
!event.ctrlKey &&
|
!event.ctrlKey &&
|
||||||
!event.shiftKey &&
|
!event.shiftKey &&
|
||||||
!event.altKey &&
|
!event.altKey &&
|
||||||
!event.metaKey
|
!event.metaKey &&
|
||||||
|
(this.state.draggingElement === null ||
|
||||||
|
this.state.elementType !== "selection")
|
||||||
) {
|
) {
|
||||||
this.setState({ elementType: findShapeByKey(event.key) });
|
this.setState({ elementType: findShapeByKey(event.key) });
|
||||||
} else if (event[META_KEY] && event.code === "KeyZ") {
|
} else if (event[META_KEY] && event.code === "KeyZ") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user