X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=blobdiff_plain;f=helpers%2Fmapping.py;h=6e3b29153e4d817205d015cf8a441f56da654189;hp=1f63459adbf76ca206788ba405cc2e448a0198a3;hb=a1d7f30a1cafbfcf3a0a561fcab71ce6437a3d45;hpb=05d0d2ed0672aeb2e056c8af79bebde9c8b27199 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