From cf6a5ff16be39de8ff474c51c5aa18c77e2abcf5 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Sat, 20 Mar 2021 13:28:28 +0100 Subject: [PATCH] fix: state continuously updated when holding ctrl/cmd (#3283) --- src/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 12658cec..f7c09c2f 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1405,7 +1405,7 @@ class App extends React.Component { return; } - if (event[KEYS.CTRL_OR_CMD]) { + if (event[KEYS.CTRL_OR_CMD] && this.state.isBindingEnabled) { this.setState({ isBindingEnabled: false }); }