add symbols above numerical keys

master
Cole Deck 4 years ago
parent 4528714ca0
commit 4dd36b5e34

Binary file not shown.

16
kb.py

@ -48,6 +48,12 @@ def write_caps(char):
write_report(chr(32)+NULL_CHAR+chr(char)+NULL_CHAR*5)
def write_str(word):
for letter in word:
if letter == "!" or letter == "@" or letter == "#" or letter == "$" or letter == "%" or letter == "^" or letter == "&" or letter == "*" or letter == "(" or letter == ")":
key = [x for x in ")!@#$%^&*("]
num = key.index(letter)
write_caps(keycodes.keycodelst[str(num)])
write_report(NULL_CHAR*8)
continue
if letter == "?":
letter = "/"
write_caps(keycodes.keycodelst[letter])
@ -68,16 +74,6 @@ def write_str(word):
write_caps(keycodes.keycodelst[letter])
write_report(NULL_CHAR*8)
continue
if letter == "!":
letter = "1"
write_caps(keycodes.keycodelst[letter])
write_report(NULL_CHAR*8)
continue
if letter == "*":
letter = "8"
write_caps(keycodes.keycodelst[letter])
write_report(NULL_CHAR*8)
continue
if letter.capitalize() == letter and letter >= 'A' and letter <= 'Z':
#print(letter.capitalize(), letter)
write_caps(keycodes.keycodelst[letter])

Loading…
Cancel
Save