Skip to content

Commit

Permalink
MS Word nextParagraph and previousParagraph Scripts: use textInfos to…
Browse files Browse the repository at this point in the history
… move the selection rather than one single MS Word move call as it wasn't really ever updating the selection. Re #3290, #4232
  • Loading branch information
michaelDCurran committed Jul 20, 2014
1 parent ddf7795 commit f356919
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/NVDAObjects/window/winword.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,16 @@ def script_previousColumn(self,gesture):
self._moveInTable(row=False,forward=False)

def script_nextParagraph(self,gesture):
self.WinwordSelectionObject.move(wdParagraph,1)
info=self.makeTextInfo(textInfos.POSITION_CARET)
info.move(textInfos.UNIT_PARAGRAPH,1)
info.updateCaret()
self._caretScriptPostMovedHelper(textInfos.UNIT_PARAGRAPH,gesture,None)
script_nextParagraph.resumeSayAllMode=sayAllHandler.CURSOR_CARET

def script_previousParagraph(self,gesture):
self.WinwordSelectionObject.move(wdParagraph,-1)
info=self.makeTextInfo(textInfos.POSITION_CARET)
info.move(textInfos.UNIT_PARAGRAPH,-1)
info.updateCaret()
self._caretScriptPostMovedHelper(textInfos.UNIT_PARAGRAPH,gesture,None)
script_previousParagraph.resumeSayAllMode=sayAllHandler.CURSOR_CARET

Expand Down

0 comments on commit f356919

Please sign in to comment.