OSDN Git Service

UIA NVDAObject: Don't handle valueChange events on editable text controls.
authorJames Teh <jamie@jantrid.net>
Sat, 13 Oct 2012 06:54:42 +0000 (16:54 +1000)
committerJames Teh <jamie@jantrid.net>
Sat, 13 Oct 2012 06:54:42 +0000 (16:54 +1000)
Stops speaking the entire content of these controls (e.g. the Search Box in the Windows 7/8 Start Menu) every time it changes.

source/NVDAObjects/UIA/__init__.py
user_docs/en/changes.t2t

index 7a1fef3..affc532 100644 (file)
@@ -641,6 +641,11 @@ class UIA(Window):
                        parentCount+=1\r
                return info\r
 \r
+       def event_valueChange(self):\r
+               if isinstance(self, EditableTextWithoutAutoSelectDetection):\r
+                       return\r
+               return super(UIA, self).event_valueChange()\r
+\r
 class TreeviewItem(UIA):\r
 \r
        def _get_value(self):\r
index 87428eb..17c0190 100644 (file)
@@ -93,6 +93,7 @@ Highlights of this release include support for Asian character input; experiment
 - Links in Windows XP's Security Center no longer report random junk after their names. (#1331)\r
 - UI Automation text controls (e.g.  the search field in the Windows 7 Start Menu) are now  correctly announced when moving the mouse over them rather than staying silent.\r
 - Keyboard layout changes are no longer reported during say all, which was particularly problematic for multilingual documents including Arabic text. (#1676)\r
+- The entire content of some UI Automation editable text controls (e.g. the Search Box in the Windows 7/8 Start Menu) is no longer announced every time it changes.\r
 \r
 \r
 == Changes for Developers ==\r