Skip to content

Commit

Permalink
Merge abd017f into 81d81dc
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclause committed Feb 18, 2020
2 parents 81d81dc + abd017f commit 01f923b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/brailleInput.py
Expand Up @@ -21,6 +21,7 @@
import api
from baseObject import AutoPropertyObject
import keyLabels
import struct


"""Framework for handling braille input from the user.
Expand Down Expand Up @@ -391,6 +392,7 @@ def sendChars(self, chars: str):
@param chars: The characters to send to the system.
"""
inputs = []
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)
for ch in chars:
for direction in (0,winUser.KEYEVENTF_KEYUP):
input = winUser.Input()
Expand Down

0 comments on commit 01f923b

Please sign in to comment.