Add Tab before every message

This commit is contained in:
redfast00 2021-11-08 23:47:06 +01:00
parent ce24054458
commit f904752fbe
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ class KeyboardHandler:
def printstring(self, s):
last_c = ''
last_last_c = ''
# send Tab-key, to indicate this is sent by machine, not by human
self.write_report(NULL_CHAR * 2 + chr(0x2b) + NULL_CHAR*5)
self.release_keys()
for c in s:
if last_last_c == '§':
self.change_color(last_c, c)