From c0e2e1d660552a9b3777a73c041e2dd6e5726f6d Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Thu, 1 Sep 2022 17:44:17 +0200
Subject: [PATCH] Adjusted key for clearing selection on background click

---
 src/editor/js/components/editor.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx
index cbabc02..979ed71 100644
--- a/src/editor/js/components/editor.tsx
+++ b/src/editor/js/components/editor.tsx
@@ -196,7 +196,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
         }
 
         // Just deselect if shift key is pressed
-        if (this.state.keys["Shift"]) {
+        if (this.state.keys["Control"]) {
             this.selectNode(undefined);
             return;
         }
@@ -565,7 +565,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
                         <hr />
                         <ul className="instructions">
                             <li>Click background to create node</li>
-                            <li>SHIFT+Click background to clear selection</li>
+                            <li>CTRL+Click background to clear selection</li>
                             <li>Click node to select and edit</li>
                             <li>CTRL+Click node to delete</li>
                             <li>CTRL+Click link to delete</li>
-- 
GitLab