diff --git a/honoka/src/honoka_imengine.cpp b/honoka/src/honoka_imengine.cpp index 6e593fd..5f46d97 100644 --- a/honoka/src/honoka_imengine.cpp +++ b/honoka/src/honoka_imengine.cpp @@ -715,21 +715,24 @@ { // PreEdit���Υ������٥�ȡ� for(unsigned int i = 0;i < k_preeditor.size();i ++) { - if (k_preeditor[i].comp(key) && (preeditors[i] != m_preeditor)) { + if (k_preeditor[i].comp(key)) { + if (preeditors[i] == m_preeditor) return true; changePreEditor(preeditors[i]->getName()); updatePreEditor(); return true; } } for(unsigned int i = 0;i < k_convertor.size();i ++) { - if (k_convertor[i].comp(key) && (convertors[i] != m_convertor)) { + if (k_convertor[i].comp(key)) { + if (convertors[i] == m_convertor) return true; changeConvertor(convertors[i]->getName()); updatePreEditor(); return true; } } for(unsigned int i = 0;i < k_predictor.size();i ++) { - if (k_predictor[i].comp(key) && (predictors[i] != m_predictor)) { + if (k_predictor[i].comp(key)) { + if (predictors[i] == m_predictor) return true; m_predictor = predictors[i]; updatePreEditor(); return true; @@ -1095,7 +1098,8 @@ // ����ʸ��θ�������Ѵ����󥸥󤫤�������륭���� if (m_convertor != m_multi) { for(unsigned int i = 0;i < k_convertor.size();i ++) { - if (k_convertor[i].comp(key) && (convertors[i] != m_convertor)) { + if (k_convertor[i].comp(key)) { + if (convertors[i] == m_convertor) return true; if (!convertors[i]->isConnected()) if (!convertors[i]->connect()) return true; m_no_update = true; @@ -1107,7 +1111,7 @@ convertors[i]->reset(); startLookup(); updateConversion(); - return(true); + return true; } } }