[orca/gnome-2-26] Fix for bug #577977 - provide speech feedback for "repeat last find" in Gedit



commit b4e6fb45f5897b715eba016e4231e12f0f533c4a
Author: Willie Walker <william walker sun com>
Date:   Tue Apr 28 09:11:08 2009 -0400

    Fix for bug #577977 - provide speech feedback for "repeat last find" in Gedit
---
 src/orca/scripts/apps/gedit/script.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/orca/scripts/apps/gedit/script.py b/src/orca/scripts/apps/gedit/script.py
index f411cee..cc67b93 100644
--- a/src/orca/scripts/apps/gedit/script.py
+++ b/src/orca/scripts/apps/gedit/script.py
@@ -569,6 +569,15 @@ class Script(default.Script):
                 utterances = self.speechGenerator.getSpeech(event.source, True)
                 speech.speakUtterances(utterances)
 
+        # If Ctrl+G was used to repeat a find command, speak the line that
+        # the caret moved to.
+        #
+        if orca_state.lastInputEvent \
+           and orca_state.lastInputEvent.event_string == 'G' \
+           and orca_state.lastInputEvent.modifiers \
+               & (1 << pyatspi.MODIFIER_CONTROL):
+            self.sayLine(event.source)
+
         # For everything else, pass the caret moved event onto the parent
         # class to be handled in the default way.
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]