Skip to content

Commit 01f923b

Browse files
authored
Merge abd017f into 81d81dc
2 parents 81d81dc + abd017f commit 01f923b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/brailleInput.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import api
2222
from baseObject import AutoPropertyObject
2323
import keyLabels
24+
import struct
2425

2526

2627
"""Framework for handling braille input from the user.
@@ -391,6 +392,7 @@ def sendChars(self, chars: str):
391392
@param chars: The characters to send to the system.
392393
"""
393394
inputs = []
395+
chars = ''.join(ch if ord(ch) <= 0xffff else ''.join(chr(x) for x in struct.unpack(">2H", ch.encode("utf-16be"))) for ch in chars)
394396
for ch in chars:
395397
for direction in (0,winUser.KEYEVENTF_KEYUP):
396398
input = winUser.Input()

0 commit comments

Comments
 (0)