diff --git a/src/fenrir-package/commands/commands/prev_line.py b/src/fenrir-package/commands/commands/prev_line.py index 5a784392..aeeef62b 100644 --- a/src/fenrir-package/commands/commands/prev_line.py +++ b/src/fenrir-package/commands/commands/prev_line.py @@ -14,7 +14,6 @@ class command(): environment['runtime']['outputManager'].speakText(environment, "empty line") else: environment['runtime']['outputManager'].speakText(environment, environment['screenData']['newContentText'].split('\n')[environment['screenData']['newCursorReview']['y']]) - print(environment['screenData']['newCursorReview']) return environment def setCallback(self, callback): pass diff --git a/src/fenrir-package/core/commandManager.py b/src/fenrir-package/core/commandManager.py index 565845e9..22f81804 100644 --- a/src/fenrir-package/core/commandManager.py +++ b/src/fenrir-package/core/commandManager.py @@ -31,7 +31,6 @@ class commandManager(): return environment def executeCommand(self, environment, currCommand, section = 'commands'): - environment = environment['commands'][section][currCommand].run(environment) if self.isCommandDefined(environment): try: environ = environment['commands'][section][currCommand].run(environment) diff --git a/src/fenrir-package/fenrir.py b/src/fenrir-package/fenrir.py index 8ce0dc61..47f2834f 100755 --- a/src/fenrir-package/fenrir.py +++ b/src/fenrir-package/fenrir.py @@ -33,7 +33,9 @@ class fenrir(): self.environment = self.environment['runtime']['commandManager'].getCommandForShortcut(self.environment) self.environment = self.environment['runtime']['screenDriver'].analyzeScreen(self.environment) 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.environment['runtime']['globalLock'].release()