KeyHandler // Always set _inputMode when init().

This commit is contained in:
ShikiSuen 2022-04-14 18:39:34 +08:00
parent 27438d48aa
commit c6afe743c0
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,6 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
// 拿當前的 _inputMode 與 ctlInputMethod 的提報結果對比,不同的話則套用新設定:
if (![_inputMode isEqualToString:ctlInputMethod.currentInputMode])
{
_inputMode = ctlInputMethod.currentInputMode;
// Reinitiate language models if necessary
[self setInputModesToLM:isCHS];
@ -129,6 +128,7 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
if (![self isPhoneticReadingBufferEmpty])
[self clearPhoneticReadingBuffer];
}
_inputMode = ctlInputMethod.currentInputMode;
}
- (void)dealloc