diff --git a/honoka/src/honoka_imengine.cpp b/honoka/src/honoka_imengine.cpp index bb9b522..cbc7db2 100644 --- a/honoka/src/honoka_imengine.cpp +++ b/honoka/src/honoka_imengine.cpp @@ -982,8 +982,20 @@ updatePreEditor(); return true; } + if (numkeyselect) { + for(unsigned int i = 0;i < 10;i ++) { + if (k_selection[i].comp(key)) { + int numc = i - 1; + if (numc < 0) numc = 9; + if (m_lookup_table.get_current_page_size() <= numc) return true; + select_candidate((unsigned int)numc); + return true; + } + } + } + if (!key.get_ascii_code()) return true; - if ((!(key.is_control_down() || key.is_alt_down() || key.is_shift_down())) && numkeyselect) { +/* if ((!(key.is_control_down() || key.is_alt_down() || key.is_shift_down())) && numkeyselect) { char numk[] = "1234567890"; for(int numc = 0;numk[numc]; ++ numc) { if (key.get_ascii_code() == numk[numc]) { @@ -993,7 +1005,7 @@ } } } - +*/ m_yosoku = false; commit_string(m_convList.kouho.at(m_convList.pos)); m_preeditor->reset();