OSDN Git Service

IAccessible nvdaObject: remove code to handle live regions as its no longer needed...
authorMichael Curran <mick@kulgan.net>
Thu, 26 Nov 2009 05:17:25 +0000 (16:17 +1100)
committerMichael Curran <mick@kulgan.net>
Thu, 26 Nov 2009 05:17:25 +0000 (16:17 +1100)
source/NVDAObjects/IAccessible/__init__.py

index 3736d8c..acfde6a 100644 (file)
@@ -1045,20 +1045,6 @@ the NVDAObject for IAccessible
                                child.speakDescendantObjects(hashList=hashList)\r
                        child=child.next\r
 \r
-       def event_show(self):\r
-               if not winUser.isDescendantWindow(winUser.getForegroundWindow(),self.windowHandle) or not winUser.isWindowVisible(self.windowHandle) or controlTypes.STATE_INVISIBLE in self.states: \r
-                       return\r
-               try:\r
-                       attribs=self.IAccessibleObject.attributes\r
-               except:\r
-                       return\r
-               if attribs and ('live:polite' in attribs or 'live:assertive' in attribs): \r
-                       text=IAccessibleHandler.getRecursiveTextFromIAccessibleTextObject(self.IAccessibleObject)\r
-                       if text and not text.isspace():\r
-                               if 'live:rude' in attribs:\r
-                                       speech.cancelSpeech()\r
-                               speech.speakMessage(text)\r
-\r
        def event_gainFocus(self):\r
                if hasattr(self,'IAccessibleTextObject'):\r
                        self.initAutoSelectDetection()\r