[orca] Web: Use posinset and setsize attributes for menus, even in browser gui
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Web: Use posinset and setsize attributes for menus, even in browser gui
- Date: Tue, 2 Feb 2021 14:28:17 +0000 (UTC)
commit 7bd61205b8b26411d54ec55e1361e99d827e5613
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 2 15:27:18 2021 +0100
Web: Use posinset and setsize attributes for menus, even in browser gui
src/orca/scripts/web/script_utilities.py | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index e96104359..b3c2bea9e 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -561,6 +561,15 @@ class Utilities(script_utilities.Utilities):
return rv
+ def getPositionAndSetSize(self, obj, **args):
+ posinset = self.getPositionInSet(obj)
+ setsize = self.getSetSize(obj)
+ if posinset is not None and setsize is not None:
+ # ARIA posinset is 1-based
+ return posinset - 1, setsize
+
+ return super().getPositionAndSetSize(obj, **args)
+
def getPositionInSet(self, obj):
attrs = self.objectAttributes(obj, False)
position = attrs.get('posinset')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]