From a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 26 Jul 2016 16:25:35 +0200 Subject: [PATCH] Stop all actions before leaving --- helpers/mapping.py | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/mapping.py b/helpers/mapping.py index 1f63459..6e3b291 100644 --- a/helpers/mapping.py +++ b/helpers/mapping.py @@ -71,6 +71,7 @@ class Mapping(RelativeLayout): if len(modifiers) == 0 and key is not None: threading.Thread(name="MSKeyAction", target=key.run).start() elif 'ctrl' in modifiers and (keycode[0] == 113 or keycode[0] == '99'): + self.stop_all_running() for thread in threading.enumerate(): if thread.getName()[0:2] != "MS": continue -- 2.41.0