Explorar o código

fix: state continuously updated when holding ctrl/cmd (#3283)

David Luzar %!s(int64=4) %!d(string=hai) anos
pai
achega
cf6a5ff16b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/App.tsx

+ 1 - 1
src/components/App.tsx

@@ -1405,7 +1405,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
       return;
     }
 
-    if (event[KEYS.CTRL_OR_CMD]) {
+    if (event[KEYS.CTRL_OR_CMD] && this.state.isBindingEnabled) {
       this.setState({ isBindingEnabled: false });
     }