From 1f0494ce732a69f43106046908c0c207791d38c4 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Mon, 17 Jun 2019 16:46:27 +0200
Subject: [PATCH] comment added

---
 flatland/utils/editor.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flatland/utils/editor.py b/flatland/utils/editor.py
index 4dcd4ef..25e11a4 100644
--- a/flatland/utils/editor.py
+++ b/flatland/utils/editor.py
@@ -277,6 +277,7 @@ class Controller(object):
 
         # If the mouse is held down, enqueue an event in our own queue
         # The intention was to avoid too many redraws.
+        # Reset the lrcStroke list, if ALT, CTRL or SHIFT pressed
         if event["buttons"] > 0:
             qEvents.append((time.time(), x, y))
             bShift = event["shiftKey"]
@@ -299,7 +300,6 @@ class Controller(object):
                 return
         else:
             self.lrcStroke = []
-             
 
         if self.model.iSelectedAgent is not None:
             self.lrcStroke = []
-- 
GitLab