Merge branch 'master' into inputHandlingRework
This commit is contained in:
commit
2623cafeac
@ -30,6 +30,7 @@
|
|||||||
1-FENRIR,1-KEY_D=date
|
1-FENRIR,1-KEY_D=date
|
||||||
#=spell_check
|
#=spell_check
|
||||||
#=add_word_to_spell_check
|
#=add_word_to_spell_check
|
||||||
|
#=remove_word_from_spell_check
|
||||||
#=foreward_keypress
|
#=foreward_keypress
|
||||||
#=inc_speech_volume
|
#=inc_speech_volume
|
||||||
#=dec_speech_volume
|
#=dec_speech_volume
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#=date
|
#=date
|
||||||
#=spell_check
|
#=spell_check
|
||||||
#=add_word_to_spell_check
|
#=add_word_to_spell_check
|
||||||
|
#=remove_word_from_spell_check
|
||||||
#=foreward_keypress
|
#=foreward_keypress
|
||||||
#=inc_speech_volume
|
#=inc_speech_volume
|
||||||
#=dec_speech_volume
|
#=dec_speech_volume
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
1-FENRIR,1-KEY_R=date
|
1-FENRIR,1-KEY_R=date
|
||||||
1-FENRIR,1-KEY_M=spell_check
|
1-FENRIR,1-KEY_M=spell_check
|
||||||
1-FENRIR,1-KEY_G=add_word_to_spell_check
|
1-FENRIR,1-KEY_G=add_word_to_spell_check
|
||||||
|
#=remove_word_from_spell_check
|
||||||
1-FENRIR,1-KEY_A=foreward_keypress
|
1-FENRIR,1-KEY_A=foreward_keypress
|
||||||
#1-FENRIR,1-KEY_F2=inc_speech_volume
|
#1-FENRIR,1-KEY_F2=inc_speech_volume
|
||||||
#1-FENRIR,1-KEY_F3=dec_sound_volume
|
#1-FENRIR,1-KEY_F3=dec_sound_volume
|
||||||
|
@ -33,14 +33,11 @@ class command():
|
|||||||
x, y, currWord = word_utils.getCurrentWord(cursorPos['x'], 0, newContent)
|
x, y, currWord = word_utils.getCurrentWord(cursorPos['x'], 0, newContent)
|
||||||
|
|
||||||
if currWord != '':
|
if currWord != '':
|
||||||
if self.spellChecker.check(currWord):
|
if self.spellChecker.is_added(currWord):
|
||||||
environment['runtime']['outputManager'].presentText(environment, 'not misspelled',soundIcon='mispell', interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, currWord + ' is already in dict',soundIcon='Cancel', interrupt=True)
|
||||||
else:
|
else:
|
||||||
if self.spellChecker.is_added(currWord):
|
self.spellChecker.add(currWord)
|
||||||
environment['runtime']['outputManager'].presentText(environment, 'not misspelled',soundIcon='Cancel', interrupt=True)
|
environment['runtime']['outputManager'].presentText(environment, currWord + ' added',soundIcon='Accept', interrupt=True)
|
||||||
else:
|
|
||||||
self.spellChecker.add(currWord)
|
|
||||||
environment['runtime']['outputManager'].presentText(environment, currWord + ' added',soundIcon='Accept', interrupt=True)
|
|
||||||
|
|
||||||
return environment
|
return environment
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
|
Loading…
Reference in New Issue
Block a user