]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/mapping.py
Stop all actions before leaving
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / mapping.py
index 1f63459adbf76ca206788ba405cc2e448a0198a3..6e3b29153e4d817205d015cf8a441f56da654189 100644 (file)
@@ -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