From 0bea16359a0a9f2efca801ba7018ba4678d0dfdd Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 23 Sep 2016 12:44:10 +0200 Subject: [PATCH] Update curr_char_phonetic.py --- src/fenrir-package/commands/commands/curr_char_phonetic.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fenrir-package/commands/commands/curr_char_phonetic.py b/src/fenrir-package/commands/commands/curr_char_phonetic.py index fdd6b2e8..eccb321d 100644 --- a/src/fenrir-package/commands/commands/curr_char_phonetic.py +++ b/src/fenrir-package/commands/commands/curr_char_phonetic.py @@ -18,10 +18,7 @@ class command(): return 'phonetically presents the current character' 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, currChar = \ char_utils.getCurrentChar(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])