]>
Commit | Line | Data |
---|---|---|
62a8b07a IB |
1 | def run(action, key_start_time=0, other_only=False, **kwargs): |
2 | if other_only: | |
3 | action.mapping.stop_all_running( | |
4 | except_key=action.key, | |
5 | key_start_time=key_start_time) | |
6 | else: | |
7 | action.mapping.stop_all_running() | |
c4f4f2a1 | 8 | |
62a8b07a IB |
9 | def description(action, other_only=False, **kwargs): |
10 | message = "stopping all actions" | |
11 | if other_only: | |
12 | message += " except this key" | |
13 | ||
6a327173 | 14 | return _(message) |