Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

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

David Luzarcf6a5ff16be3
diff --git a/src/components/App.tsx b/src/components/App.tsx
index 12658cecb1..f7c09c2f63 100644
--- a/src/components/App.tsx
+++ b/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 });
}