Skip to content

Commit

Permalink
Fixed nvaccess#860
Browse files Browse the repository at this point in the history
This commit fixes nvaccess#860 by checking the "Formula" IAccessible2 attribute exposed by Lotus Symphany based spreadsheet applications and adding the STATE_HASFORMULA where needed.
  • Loading branch information
codeofdusk committed Jan 1, 2019
1 parent f6cd02d commit d2f3130
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/appModules/soffice.py
Expand Up @@ -10,6 +10,7 @@
import controlTypes
import textInfos
import colors
import tones
from compoundDocuments import CompoundDocument
from NVDAObjects.JAB import JAB, JABTextInfo
from NVDAObjects.IAccessible import IAccessible, IA2TextTextInfo
Expand Down Expand Up @@ -220,6 +221,8 @@ def _get_states(self):
# #8988: Cells in Libre Office do not have the selected state when a single cell is selected (i.e. has focus).
# Since #8898, the negative selected state is announced for table cells with the selectable state.
states.add(controlTypes.STATE_SELECTED)
if 'Formula' in self.IA2Attributes and self.IA2Attributes['Formula']:
states.add(controlTypes.STATE_HASFORMULA)
return states

class SymphonyTable(IAccessible):
Expand Down

0 comments on commit d2f3130

Please sign in to comment.