[Nvda-dev] commit r1944 - trunk/source

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Nvda-dev] commit r1944 - trunk/source

NVDA Subversion
Author: mdcurran
Date: Tue Apr 22 10:23:15 2008
New Revision: 1944

Log:
speech: always silence state_focusable. The user really does not care about this state at all... in fact state_selectable is always silenced, so its probably also best that focusable is as well.

Modified:
   trunk/source/speech.py

Modified: trunk/source/speech.py
==============================================================================
--- trunk/source/speech.py (original)
+++ trunk/source/speech.py Tue Apr 22 10:23:15 2008
@@ -470,10 +470,10 @@
  positiveStates = positiveStates.copy()
  # The user never cares about certain states.
  positiveStates.discard(controlTypes.STATE_SELECTABLE)
+ positiveStates.discard(controlTypes.STATE_FOCUSABLE)
  if reason == REASON_QUERY:
  return positiveStates
  positiveStates.discard(controlTypes.STATE_FOCUSED)
- positiveStates.discard(controlTypes.STATE_FOCUSABLE)
  if reason in (REASON_FOCUS, REASON_CARET, REASON_SAYALL):
  positiveStates.difference_update(frozenset((controlTypes.STATE_INVISIBLE, controlTypes.STATE_READONLY, controlTypes.STATE_LINKED)))
  if role in (controlTypes.ROLE_LISTITEM, controlTypes.ROLE_TREEVIEWITEM) and controlTypes.STATE_SELECTABLE in states: