OSDN Git Service

explorer: Use existing role variable instead of calling obj.role. Fix typo in comment.
authorJames Teh <jamie@jantrid.net>
Wed, 17 Oct 2012 00:38:42 +0000 (10:38 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 17 Oct 2012 00:38:42 +0000 (10:38 +1000)
source/appModules/explorer.py

index 73db8a1..7a91744 100644 (file)
@@ -105,7 +105,7 @@ if UIAHandler.isUIAAvailable:
                presentationType=UIA.presType_content\r
 \r
        class ImmersiveLauncher(UIA):\r
-               #When the win8 start screen openes, focus correctly goes to th first tile, but then incorrectly back to the root of the window.\r
+               #When the win8 start screen openes, focus correctly goes to the first tile, but then incorrectly back to the root of the window.\r
                #Ignore focus events on this object.\r
                shouldAllowUIAFocusEvent=False\r
 \r
@@ -153,7 +153,7 @@ class AppModule(appModuleHandler.AppModule):
                                clsList.insert(0, GridListTileElement)\r
                        elif uiaClassName == "GridGroup":\r
                                clsList.insert(0, GridGroup)\r
-                       elif uiaClassName == "ImmersiveLauncher" and obj.role==controlTypes.ROLE_PANE:\r
+                       elif uiaClassName == "ImmersiveLauncher" and role == controlTypes.ROLE_PANE:\r
                                clsList.insert(0, ImmersiveLauncher)\r
 \r
        def event_NVDAObject_init(self, obj):\r