Skip to content

Commit

Permalink
NVDA no longer becomes unusable after exiting Windows Media Player wh…
Browse files Browse the repository at this point in the history
…ile focused on a slider control.

api.setFocusObject: ensure that the newAppModules list passed to appModuleHandler.handleAppSwitch contains the appModule for the new focus, rather than only the appmodule for an original focus ancestor that happened to match the new focus.
Fixes #5467.
  • Loading branch information
michaelDCurran committed Jan 24, 2017
1 parent 7fefb3a commit ee5f36e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/api.py
Expand Up @@ -107,9 +107,13 @@ def setFocusObject(obj):
container=tempObj.container
tempObj.container=container # Cache the parent.
tempObj=container
newAppModules=[o.appModule for o in ancestors if o and o.appModule]
#Remove the final new ancestor as this will be the new focus object
del ancestors[-1]
# #5467: Ensure that the appModule of the real focus is included in the newAppModule list for profile switching
# Rather than an original focus ancestor which happened to match the new focus.
newAppModules=[o.appModule for o in ancestors if o and o.appModule]
if obj.appModule:
newAppModules.append(obj.appModule)
try:
treeInterceptorHandler.cleanup()
except watchdog.CallCancelled:
Expand Down

0 comments on commit ee5f36e

Please sign in to comment.