Skip to content

Commit

Permalink
Fixes nvaccess#15773 / Fixup of nvaccess#15163
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclause committed Nov 12, 2023
1 parent a5d9e5b commit f3cff4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/brailleInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _translate(self, endWord: bool) -> bool:
if len(newText)>1:
# Emulation of multiple characters at once is unsupported
# Clear newText, so this function returns C{False} if not at end of word
newText = u""
newText = ""
else:
self.emulateKey(newText)
else:
Expand All @@ -164,7 +164,7 @@ def _translate(self, endWord: bool) -> bool:
# We only need to buffer one word.
# Clear the previous word (anything before the cursor) from the buffer.
del self.bufferBraille[:pos]
self.bufferText = u""
self.bufferText = ""
self.cellsWithText.clear()
self.currentModifiers.clear()
self.untranslatedStart = 0
Expand Down Expand Up @@ -314,7 +314,8 @@ def updateDisplay(self):
"""
region = braille.handler.mainBuffer.regions[-1] if braille.handler.mainBuffer.regions else None
if isinstance(region, braille.TextInfoRegion):
braille.handler._doCursorMove(region)
braille.handler._regionsPendingUpdate.add(region)
braille.handler._handlePendingUpdate()

def eraseLastCell(self):
# Get the index of the cell being erased.
Expand Down

0 comments on commit f3cff4b

Please sign in to comment.