(keys)
| 236 | output(keys, image, display_only) |
| 237 | |
| 238 | def get_key_text(keys): |
| 239 | if not (len(keys) > 0): |
| 240 | return '' |
| 241 | |
| 242 | semaphore = keys[-1] |
| 243 | keystring = '' |
| 244 | if 'shift' in keys: |
| 245 | keystring += 'S+' |
| 246 | if 'command' in keys: |
| 247 | keystring += 'CMD+' |
| 248 | if 'control' in keys: |
| 249 | keystring += 'CTL+' |
| 250 | |
| 251 | keystring += semaphore |
| 252 | return keystring |
| 253 | |
| 254 | def output(keys, image, display_only=True): |
| 255 | keystring = '+'.join(keys) |