[orca] Don't auto-enter focus mode for embedded role if reading PDF
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't auto-enter focus mode for embedded role if reading PDF
- Date: Wed, 28 Aug 2019 17:13:22 +0000 (UTC)
commit 8dbeec24c5d5d369a7b1317f1d863cf5178bb8e9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Aug 28 13:12:31 2019 -0400
Don't auto-enter focus mode for embedded role if reading PDF
src/orca/scripts/web/script_utilities.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index d5fca8bcb..9f72926c6 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1790,6 +1790,10 @@ class Utilities(script_utilities.Utilities):
return handled
+ def inPDFViewer(self, obj=None):
+ uri = self.documentFrameURI()
+ return uri.lower().endswith(".pdf")
+
def inTopLevelWebApp(self, obj=None):
if not obj:
obj = orca_state.locusOfFocus
@@ -1870,7 +1874,8 @@ class Utilities(script_utilities.Utilities):
if role in focusModeRoles \
and not self.isTextBlockElement(obj) \
- and not self.hasNameAndActionAndNoUsefulChildren(obj):
+ and not self.hasNameAndActionAndNoUsefulChildren(obj) \
+ and not self.inPDFViewer(obj):
return True
if self.isGridDescendant(obj) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]