OSDN Git Service

IAccessible NVDAObject's children property: the dictionary from getIAccIdentity somet...
authorMichael Curran <mick@kulgan.net>
Thu, 7 Jul 2011 07:14:35 +0000 (17:14 +1000)
committerMichael Curran <mick@kulgan.net>
Thu, 7 Jul 2011 07:14:35 +0000 (17:14 +1000)
source/NVDAObjects/IAccessible/__init__.py

index 2c8ef36..3f6c2bc 100644 (file)
@@ -942,7 +942,7 @@ the NVDAObject for IAccessible
                                identity=None\r
                        #For Window root IAccessibles, we just want to use the new window handle, but use the best API for that window, rather than IAccessible\r
                        #If it does happen to be IAccessible though, we only want the client, not the window root IAccessible\r
-                       if identity and identity['objectID']==0 and identity['childID']==0:\r
+                       if identity and identity.get('objectID',None)==0 and identity.get('childID',None)==0:\r
                                windowHandle=identity.get('windowHandle',None)\r
                                if windowHandle:\r
                                        kwargs=dict(windowHandle=windowHandle)\r