Skip to content

Commit 903354c

Browse files
Merge 6763873 into a380b6a
2 parents a380b6a + 6763873 commit 903354c

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

source/appModules/soffice.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,13 @@ def searchStatusBar(self, obj: NVDAObject, max_depth: int = 5) -> Optional[NVDAO
388388
(up to the given depth) has the corresponding role."""
389389
if obj.role == controlTypes.Role.STATUSBAR:
390390
return obj
391-
if max_depth < 1 or obj.role not in {controlTypes.Role.ROOTPANE, controlTypes.Role.WINDOW}:
391+
if max_depth < 1 or obj.role not in {
392+
controlTypes.Role.DIALOG,
393+
controlTypes.Role.FRAME,
394+
controlTypes.Role.OPTIONPANE,
395+
controlTypes.Role.ROOTPANE,
396+
controlTypes.Role.WINDOW
397+
}:
392398
return None
393399
for child in obj.children:
394400
status_bar = self.searchStatusBar(child, max_depth - 1)
@@ -402,9 +408,10 @@ def _get_statusBar(self) -> Optional[NVDAObject]:
402408
def getStatusBarText(self, obj: NVDAObject) -> str:
403409
text = ""
404410
for child in obj.children:
405-
textObj = child.IAccessibleTextObject
406-
if textObj:
407-
if text:
408-
text += " "
409-
text += textObj.textAtOffset(0, IA2.IA2_TEXT_BOUNDARY_ALL)[2]
411+
if hasattr(child, 'IAccessibleTextObject'):
412+
textObj = child.IAccessibleTextObject
413+
if textObj:
414+
if text:
415+
text += " "
416+
text += textObj.textAtOffset(0, IA2.IA2_TEXT_BOUNDARY_ALL)[2]
410417
return text

user_docs/en/changes.t2t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This option now announces additional relevant information about an object when t
2626
- The SAPI4 synthesizer now properly supports volume, rate and pitch changes embedded in speech. (#15271)
2727
- Multi line state is now correctly reported in applications using Java Access Bridge. (#14609)
2828
- In LibreOffice, words deleted using the ``control+backspace`` keyboard shortcut are now also properly announced when the deleted word is followed by whitespace (like spaces and tabs). (#15436)
29+
- In LibreOffice, announcement of the status bar using the ``NVDA+end`` keyboard shortcut now also works for dialogs and the upcoming LibreOffice version 24.2. (#15591)
2930
-
3031

3132
== Changes for Developers ==

0 commit comments

Comments
 (0)