[orca/gnome-3-14] Do not present tutorial messages if the object is not the locusOfFocus
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Do not present tutorial messages if the object is not the locusOfFocus
- Date: Tue, 23 Sep 2014 12:24:11 +0000 (UTC)
commit e37149e9afe11c0e9f49e669223b5b5c68cc9807
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Sep 20 15:37:02 2014 -0400
Do not present tutorial messages if the object is not the locusOfFocus
src/orca/tutorialgenerator.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/tutorialgenerator.py b/src/orca/tutorialgenerator.py
index f2e55b3..e20f2f7 100644
--- a/src/orca/tutorialgenerator.py
+++ b/src/orca/tutorialgenerator.py
@@ -31,6 +31,7 @@ __license__ = "LGPL"
import pyatspi
from . import debug
+from . import orca_state
from . import settings
from .orca_i18n import _ # for gettext support
@@ -781,6 +782,9 @@ class TutorialGenerator:
if not settings.enableTutorialMessages:
return []
+ if not obj == orca_state.locusOfFocus:
+ return []
+
utterances = []
role = obj.getRole()
if role in self.tutorialGenerators:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]