[orca] Chromium: Check for "keyshortcuts" attribute also for browser UI



commit ffd13a45eda4bf153d55f20c8dabe6ad6f481367
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri May 8 13:23:01 2020 -0400

    Chromium: Check for "keyshortcuts" attribute also for browser UI
    
    Chromium is exposing shortcuts for browser UI via the ARIA "keyshortcuts"
    attribute. And other user agents might start taking that approach. So
    check there first; fall back on the Action interface should no shortcuts
    be found.

 src/orca/scripts/web/script_utilities.py | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 1d91a5525..a4d047798 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2057,9 +2057,6 @@ class Utilities(script_utilities.Utilities):
         return roles
 
     def mnemonicShortcutAccelerator(self, obj):
-        if not (obj and self.inDocumentContent(obj)):
-            return super().mnemonicShortcutAccelerator(obj)
-
         attrs = self.objectAttributes(obj)
         keys = map(lambda x: x.replace("+", " "), attrs.get("keyshortcuts", "").split(" "))
         keys = map(lambda x: x.replace(" ", "+"), map(self.labelFromKeySequence, keys))


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