OSDN Git Service

Fix issue with Chinese input in PowerPoint where finalizing a composition would cause...
authorMichael Curran <mick@kulgan.net>
Thu, 28 Mar 2013 04:48:47 +0000 (14:48 +1000)
committerMichael Curran <mick@kulgan.net>
Thu, 28 Mar 2013 04:48:47 +0000 (14:48 +1000)
commit9830ae7b55117d8c040edd1e20154b58f83477ff
tree9004fa01d317dffb713cd8e5ff8c1190862361d4
parentb5d33a2b2547ad31e65734bca7f3569a0803686a
Fix issue with Chinese input in PowerPoint where finalizing a composition would cause the slide, shape and edit field to be spoken, rather than just the finalized composition like in all other applications.
Specifically:
* Add a new focusRedirect property to the base NVDAObject which by default is None. This object should give back an alternative object which should be treeted as the focus if focus ever is given to this original object. This property for now is specifically to fix the PowerPoint issue but in future may be used in other places to replace pointless focus events that bounce all over the place.
* NVDAObject.objectWithFocus(): Once the NVDAObject has been instanciated, see if this object has a focusRedirect object and if so return that instead.
* PowerPoint appModule's DocumentWindow NVDAObject: implement focusRedirect to give back the selection object (e.g. an edit field when editing a shape).
source/NVDAObjects/__init__.py
source/appModules/powerpnt.py