You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
409 B

  1. import string
  2. def get_key_choices():
  3. selectKey, shortKey = [c for c in string.ascii_lowercase], [c for c in string.ascii_lowercase]
  4. checkKey = 'ctrl shift'
  5. shortKey += [ck + ' ' + sk for ck in checkKey.split() for sk in selectKey]
  6. shortKey += [checkKey + ' ' + sk for sk in selectKey]
  7. shortKey += ['']
  8. KEY_CHOICES = ((u, c) for u, c in zip(shortKey, shortKey))
  9. return KEY_CHOICES