Skip to content

Commit

Permalink
WordDocument NVDAObject's _moveInTable method: always make getTextInF…
Browse files Browse the repository at this point in the history
…ields include table info for table movement, even if the user has reportTables disabled. Fixes #2000
  • Loading branch information
michaelDCurran committed Dec 16, 2011
1 parent 666a5bd commit 40abb95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/NVDAObjects/window/winword.py
Expand Up @@ -370,7 +370,9 @@ def script_tab(self,gesture):
def _moveInTable(self,row=True,forward=True):
info=self.makeTextInfo(textInfos.POSITION_CARET)
info.expand(textInfos.UNIT_CHARACTER)
commandList=info.getTextWithFields()
formatConfig=config.conf['documentFormatting'].copy()
formatConfig['reportTables']=True
commandList=info.getTextWithFields(formatConfig)
if len(commandList)<3 or commandList[1].field.get('role',None)!=controlTypes.ROLE_TABLE or commandList[2].field.get('role',None)!=controlTypes.ROLE_TABLECELL:
ui.message(_("Not in table"))
return False
Expand Down

0 comments on commit 40abb95

Please sign in to comment.