[orca] Remove some missed obsolete code for checked state changed
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove some missed obsolete code for checked state changed
- Date: Mon, 4 Nov 2013 21:37:25 +0000 (UTC)
commit 9bd06a7682e803c3a666e902ade35b43bf609182
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Nov 4 16:35:17 2013 -0500
Remove some missed obsolete code for checked state changed
src/orca/scripts/apps/soffice/script.py | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/orca/scripts/apps/soffice/script.py b/src/orca/scripts/apps/soffice/script.py
index 0a73e35..a772307 100644
--- a/src/orca/scripts/apps/soffice/script.py
+++ b/src/orca/scripts/apps/soffice/script.py
@@ -912,28 +912,6 @@ class Script(default.Script):
if parent.getRoleName() == 'text frame':
return
- # Announce when the toolbar buttons are toggled if we just toggled
- # them; not if we navigated to some text.
- #
- if event.type.startswith("object:state-changed:checked") \
- and role in [pyatspi.ROLE_TOGGLE_BUTTON, pyatspi.ROLE_PUSH_BUTTON]:
- weToggledIt = False
- if isinstance(orca_state.lastInputEvent,
- input_event.MouseButtonEvent):
- x = orca_state.lastInputEvent.x
- y = orca_state.lastInputEvent.y
- weToggledIt = event.source.queryComponent().contains(x, y, 0)
-
- else:
- keyString, mods = self.utilities.lastKeyAndModifiers()
- navKeys = ["Up", "Down", "Left", "Right", "Page_Up",
- "Page_Down", "Home", "End"]
- wasCommand = mods & settings.COMMAND_MODIFIER_MASK
- weToggledIt = wasCommand and keyString not in navKeys
-
- if weToggledIt:
- speech.speak(self.speechGenerator.generateSpeech(event.source))
-
default.Script.onStateChanged(self, event)
def onCaretMoved(self, event):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]