OSDN Git Service

IAccessible NVDAObject's parent property: hack around annoying MSAA implementations...
authorMichael Curran <mick@kulgan.net>
Wed, 22 Sep 2010 01:32:39 +0000 (11:32 +1000)
committerMichael Curran <mick@kulgan.net>
Wed, 22 Sep 2010 01:32:39 +0000 (11:32 +1000)
commit37888f305eeb8a94db7d005f329324610b63ea24
tree3547f4bdd2b8da0e22ab35f285c7d9e0fca6a21e
parent22e7afc759368bbbc8acc12bd0a94311ad008c5a
IAccessible NVDAObject's parent property: hack around annoying MSAA implementations that skip the window root IAccessible for client IAccessibles with accParent (Skype and iTunes) so that the window root IAccessible is properly returned. This change allows NVDA's simple review to work much better in these programs. Note that the check here is quite specific in that the window handle must change, the new window handle must be the closest parent of the original window handle, the original IAccessible must not have a role of window, and the resulting NVDAObject for the window root IAccessible must have a parent equal to the original parent NVDAObject.
source/NVDAObjects/IAccessible/__init__.py