[orca] Defer to super class's queryNonEmptyText() when browse mode is sticky
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Defer to super class's queryNonEmptyText() when browse mode is sticky
- Date: Thu, 2 Feb 2017 11:42:42 +0000 (UTC)
commit b057c99efcb716fd34ebcdb92f5e0376bf2e2138
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 2 12:41:20 2017 +0100
Defer to super class's queryNonEmptyText() when browse mode is sticky
src/orca/scripts/web/script_utilities.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c381c60..da94b64 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -764,8 +764,8 @@ class Utilities(script_utilities.Utilities):
return rv
def queryNonEmptyText(self, obj, excludeNonEntryTextWidgets=True):
- if not obj:
- return None
+ if not (obj and self.inDocumentContent(obj)) or self._script.browseModeIsSticky():
+ return super().queryNonEmptyText(obj)
if hash(obj) in self._text:
return self._text.get(hash(obj))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]