OSDN Git Service

AppModule.loadKeyMap(): Remove code for _keyMap, which is now gone.
authorJames Teh <jamie@jantrid.net>
Fri, 1 Oct 2010 04:29:06 +0000 (14:29 +1000)
committerJames Teh <jamie@jantrid.net>
Fri, 1 Oct 2010 04:29:06 +0000 (14:29 +1000)
source/appModuleHandler.py

index e14c0ce..faf9bb9 100644 (file)
@@ -231,8 +231,6 @@ class AppModule(baseObject.ScriptableObject):
        def loadKeyMap(self):\r
                """Loads a key map in to this appModule . if the key map exists. It takes in to account what layout NVDA is currently set to.\r
                """  \r
-               if '_keyMap' in self.__dict__:\r
-                       self._keyMap={}\r
                layout=config.conf["keyboard"]["keyboardLayout"]\r
                for modClass in reversed(list(itertools.takewhile(lambda x: issubclass(x,AppModule) and x is not AppModule,self.__class__.__mro__))):\r
                        name=modClass.__module__.split('.')[-1]\r