[orca] Update braille during spellcheck presentation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Update braille during spellcheck presentation
- Date: Wed, 19 Feb 2014 16:20:45 +0000 (UTC)
commit b61fb7c48cc8672a3ef17f952131de352738c4e5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 19 11:19:21 2014 -0500
Update braille during spellcheck presentation
src/orca/scripts/apps/Thunderbird/script.py | 4 ++++
src/orca/scripts/apps/gedit/script.py | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index 4386799..341ddf2 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -144,8 +144,11 @@ class Script(Gecko.Script):
obj = event.source
if self.spellcheck.isAutoFocusEvent(event):
orca.setLocusOfFocus(event, event.source, False)
+ self.updateBraille(orca_state.locusOfFocus)
if obj.parent == self.spellcheck.getSuggestionsList():
+ orca.setLocusOfFocus(event, event.source, False)
+ self.updateBraille(orca_state.locusOfFocus)
self.spellcheck.presentSuggestionListItem()
return
@@ -425,6 +428,7 @@ class Script(Gecko.Script):
self.spellcheck.presentErrorDetails()
orca.setLocusOfFocus(None, self.spellcheck.getChangeToEntry(), False)
+ self.updateBraille(orca_state.locusOfFocus)
def onWindowDeactivated(self, event):
"""Callback for window:deactivate accessibility events."""
diff --git a/src/orca/scripts/apps/gedit/script.py b/src/orca/scripts/apps/gedit/script.py
index 85a6252..b5b468c 100644
--- a/src/orca/scripts/apps/gedit/script.py
+++ b/src/orca/scripts/apps/gedit/script.py
@@ -96,6 +96,8 @@ class Script(gtk.Script):
return
if event.source.parent == self.spellcheck.getSuggestionsList():
+ orca.setLocusOfFocus(event, event.source, False)
+ self.updateBraille(orca_state.locusOfFocus)
self.spellcheck.presentSuggestionListItem()
return
@@ -146,6 +148,7 @@ class Script(gtk.Script):
self.spellcheck.presentErrorDetails()
orca.setLocusOfFocus(None, self.spellcheck.getChangeToEntry(), False)
+ self.updateBraille(orca_state.locusOfFocus)
def onWindowDeactivated(self, event):
"""Callback for window:deactivate accessibility events."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]