Skip to content

Commit

Permalink
In Scintilla based editors such as Notepad++, braille is now updated …
Browse files Browse the repository at this point in the history
…correctly when moving the cursor using a braille display.

Fixes #5678.
  • Loading branch information
jcsteh committed Mar 2, 2016
1 parent 56b2a46 commit 8dc80aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/NVDAObjects/window/scintilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ..behaviors import EditableTextWithAutoSelectDetection
import locale
import watchdog
import eventHandler

#Window messages
SCI_POSITIONFROMPOINT=2022
Expand Down Expand Up @@ -124,6 +125,9 @@ def _getCaretOffset(self):

def _setCaretOffset(self,offset):
watchdog.cancellableSendMessage(self.obj.windowHandle,SCI_GOTOPOS,offset,0)
# #5678: A caret event sometimes doesn't get fired when we do this,
# so fake one just in case.
eventHandler.executeEvent("caret", self.obj)

def _getSelectionOffsets(self):
start=watchdog.cancellableSendMessage(self.obj.windowHandle,SCI_GETSELECTIONSTART,0,0)
Expand Down

0 comments on commit 8dc80aa

Please sign in to comment.