OSDN Git Service

api.setFocusObject(): Fix incorrect logic when determining whether to set the navigat...
authorJames Teh <jamie@jantrid.net>
Thu, 7 Oct 2010 06:14:09 +0000 (16:14 +1000)
committerJames Teh <jamie@jantrid.net>
Thu, 7 Oct 2010 06:14:09 +0000 (16:14 +1000)
source/api.py

index 6f819d8..3c60b55 100644 (file)
@@ -131,7 +131,7 @@ Before overriding the last object, this function calls event_loseFocus on the ob
        globalVars.focusAncestors=ancestors\r
        braille.invalidateCachedFocusAncestors(focusDifferenceLevel)\r
        if config.conf["reviewCursor"]["followFocus"]:\r
-               setNavigatorObject(obj if not obj.treeInterceptor or not obj.treeInterceptor.passThrough or not obj.treeInterceptor.isTransitioning else obj.treeInterceptor.rootNVDAObject)\r
+               setNavigatorObject(obj if not obj.treeInterceptor or obj.treeInterceptor.passThrough or obj.treeInterceptor.isTransitioning else obj.treeInterceptor.rootNVDAObject)\r
        return True\r
 \r
 def getFocusDifferenceLevel():\r