mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Disable shortcuts for shapes while dragging the selection (#447)
This commit is contained in:
parent
67aed07b72
commit
4180485eef
1 changed files with 3 additions and 1 deletions
|
@ -297,7 +297,9 @@ export class App extends React.Component<{}, AppState> {
|
|||
!event.ctrlKey &&
|
||||
!event.shiftKey &&
|
||||
!event.altKey &&
|
||||
!event.metaKey
|
||||
!event.metaKey &&
|
||||
(this.state.draggingElement === null ||
|
||||
this.state.elementType !== "selection")
|
||||
) {
|
||||
this.setState({ elementType: findShapeByKey(event.key) });
|
||||
} else if (event[META_KEY] && event.code === "KeyZ") {
|
||||
|
|
Loading…
Add table
Reference in a new issue