mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 12:54:23 +01:00 
			
		
		
		
	disallow shape selection during creation (#449)
This commit is contained in:
		@@ -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") {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user