From 0bb8c7a6192b9d047c87dbfb636d7ecab9520d5f Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 12:52:55 +0200 Subject: [PATCH] Update curr_word_phonetic.py --- src/fenrir-package/commands/commands/curr_word_phonetic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fenrir-package/commands/commands/curr_word_phonetic.py b/src/fenrir-package/commands/commands/curr_word_phonetic.py index aa8b57ad..24d5c4b8 100644 --- a/src/fenrir-package/commands/commands/curr_word_phonetic.py +++ b/src/fenrir-package/commands/commands/curr_word_phonetic.py @@ -19,10 +19,7 @@ class command(): return 'phonetically spells the current word' def run(self): - if self.env['screenData']['newCursorReview']: - cursorPos = self.env['screenData']['newCursorReview'].copy() - else: - cursorPos = self.env['screenData']['newCursor'].copy() + cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor() x, y, currWord = \ word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])