This commit is contained in:
chrys 2016-07-14 23:48:23 +02:00
parent 39b29e7d41
commit 1748c28ecf
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,6 @@ class command():
environment['runtime']['outputManager'].speakText(environment, "empty line") environment['runtime']['outputManager'].speakText(environment, "empty line")
else: else:
environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']]) environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']])
print(environment['screenData']['newCursorReview'])
return environment return environment
def setCallback(self, callback): def setCallback(self, callback):
pass pass

View File

@ -31,7 +31,6 @@ class commandManager():
return environment return environment
def executeCommand(self, environment, currCommand, section = 'commands'): def executeCommand(self, environment, currCommand, section = 'commands'):
environment = environment['commands'][section][currCommand].run(environment)
if self.isCommandDefined(environment): if self.isCommandDefined(environment):
try: try:
environ = environment['commands'][section][currCommand].run(environment) environ = environment['commands'][section][currCommand].run(environment)

View File

@ -33,7 +33,9 @@ class fenrir():
self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment) self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment)
self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment) self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment)
self.environment = self.environment['runtime']['commandManager'].executeTriggerCommands(self.environment, 'onInput') self.environment = self.environment['runtime']['commandManager'].executeTriggerCommands(self.environment, 'onInput')
if self.environment['input']['currShortcutString'] != '': if self.environment['commandInfo']['currCommand'] != '':
self.environment['input']['currShortcut'] = {}
self.environment['input']['currShortcutString'] = ''
self.handleCommands() self.handleCommands()
self.environment['runtime']['globalLock'].release() self.environment['runtime']['globalLock'].release()