[orca/gnome-3-36] Treat SVG "documents" as if they had role of "image" during presentation



commit 7bfefae6d21c81db8a0f8d86626bcaee24fa08d2
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Mar 2 13:30:12 2020 +0100

    Treat SVG "documents" as if they had role of "image" during presentation

 src/orca/generator.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/generator.py b/src/orca/generator.py
index c7cbbc950..3de6edc43 100644
--- a/src/orca/generator.py
+++ b/src/orca/generator.py
@@ -1246,6 +1246,8 @@ class Generator:
             return pyatspi.ROLE_LANDMARK
         if self._script.utilities.isFocusableLabel(obj):
             return pyatspi.ROLE_LIST_ITEM
+        if self._script.utilities.isDocument(obj) and 'Image' in pyatspi.listInterfaces(obj):
+            return pyatspi.ROLE_IMAGE
 
         return args.get('role', obj.getRole())
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]