[orca] Add a utility method to find out if the locusOfFocus is in MathML
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add a utility method to find out if the locusOfFocus is in MathML
- Date: Fri, 3 Jul 2015 18:21:07 +0000 (UTC)
commit e1f383771f97970b07b3eec7003c39a47f29e096
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Jul 3 14:20:40 2015 -0400
Add a utility method to find out if the locusOfFocus is in MathML
src/orca/script_utilities.py | 3 +++
src/orca/scripts/web/script_utilities.py | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index b569592..345f6cc 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -606,6 +606,9 @@ class Utilities:
def isHidden(self, obj):
return False
+ def isInMath(self):
+ return False
+
def isMath(self, obj):
return False
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 06f0885..4a816bb 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1218,6 +1218,9 @@ class Utilities(script_utilities.Utilities):
self._isTextBlockElement[hash(obj)] = rv
return rv
+ def isInMath(self):
+ return self.isMath(orca_state.locusOfFocus)
+
def isMath(self, obj):
rv = self._isMath.get(hash(obj))
if rv is not None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]