|
|
|
@ -51,17 +51,27 @@ def write_str(word):
|
|
|
|
|
if letter == "~":
|
|
|
|
|
letter = "`"
|
|
|
|
|
write_caps(keycodes.keycodelst[letter])
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
continue
|
|
|
|
|
if letter == "_":
|
|
|
|
|
letter = "-"
|
|
|
|
|
write_caps(keycodes.keycodelst[letter])
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
continue
|
|
|
|
|
if letter == "|":
|
|
|
|
|
letter = "\\"
|
|
|
|
|
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)
|
|
|
|
@ -75,7 +85,7 @@ def write_str(word):
|
|
|
|
|
try:
|
|
|
|
|
write_char(keycodes.keycodelst[letter])
|
|
|
|
|
except:
|
|
|
|
|
print("Unsupported keycode! Ask Cole Deck to add support.")
|
|
|
|
|
print("Unknown keycode")
|
|
|
|
|
finally:
|
|
|
|
|
write_report(NULL_CHAR*8)
|
|
|
|
|
|
|
|
|
|