[orca] Don't present focus changes when navigating by character or word in Writer
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't present focus changes when navigating by character or word in Writer
- Date: Thu, 8 May 2014 15:19:36 +0000 (UTC)
commit 637e01a75e48f9b0f2a55da4b9a82423be0663e9
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu May 8 11:17:13 2014 -0400
Don't present focus changes when navigating by character or word in Writer
src/orca/scripts/apps/soffice/script.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 979d1ab..f5bf5e1 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -913,6 +913,12 @@ class Script(default.Script):
if self.utilities._flowsFromOrToSelection(event.source):
return
+ if event.source.getRole() == pyatspi.ROLE_PARAGRAPH:
+ keyString, mods = self.utilities.lastKeyAndModifiers()
+ if keyString in ["Left", "Right"]:
+ orca.setLocusOfFocus(event, event.source, False)
+ return
+
# We should present this in response to active-descendant-changed events
if event.source.getState().contains(pyatspi.STATE_MANAGES_DESCENDANTS):
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]