MCPcopy
hub / github.com/everythingishacked/Semaphore / get_key_text

Function get_key_text

semaphore.py:238–252  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

236 output(keys, image, display_only)
237
238def 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
254def output(keys, image, display_only=True):
255 keystring = '+'.join(keys)

Callers 1

outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected