OSDN Git Service

WordDocument NVDAObject's _moveInTable method: always make getTextInFields include...
authorMichael Curran <mick@kulgan.net>
Fri, 16 Dec 2011 09:22:27 +0000 (19:22 +1000)
committerMichael Curran <mick@kulgan.net>
Fri, 16 Dec 2011 09:22:27 +0000 (19:22 +1000)
source/NVDAObjects/window/winword.py

index 9b492e9..3973a4b 100755 (executable)
@@ -370,7 +370,9 @@ class WordDocument(EditableTextWithoutAutoSelectDetection, Window):
        def _moveInTable(self,row=True,forward=True):\r
                info=self.makeTextInfo(textInfos.POSITION_CARET)\r
                info.expand(textInfos.UNIT_CHARACTER)\r
-               commandList=info.getTextWithFields()\r
+               formatConfig=config.conf['documentFormatting'].copy()\r
+               formatConfig['reportTables']=True\r
+               commandList=info.getTextWithFields(formatConfig)\r
                if len(commandList)<3 or commandList[1].field.get('role',None)!=controlTypes.ROLE_TABLE or commandList[2].field.get('role',None)!=controlTypes.ROLE_TABLECELL:\r
                        ui.message(_("Not in table"))\r
                        return False\r