Update curr_word_phonetic.py
This commit is contained in:
parent
70284d1656
commit
0bb8c7a619
@ -19,10 +19,7 @@ class command():
|
|||||||
return 'phonetically spells the current word'
|
return 'phonetically spells the current word'
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.env['screenData']['newCursorReview']:
|
cursorPos = self.env['runtime']['cursorManager'].getReviewOrTextCursor()
|
||||||
cursorPos = self.env['screenData']['newCursorReview'].copy()
|
|
||||||
else:
|
|
||||||
cursorPos = self.env['screenData']['newCursor'].copy()
|
|
||||||
x, y, currWord = \
|
x, y, currWord = \
|
||||||
word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])
|
word_utils.getCurrentWord(cursorPos['x'], cursorPos['y'], self.env['screenData']['newContentText'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user