Skip to content

Commit

Permalink
Fix PinyinEngine::processKeyEvent method
Browse files Browse the repository at this point in the history
  • Loading branch information
epico committed Jan 9, 2025
1 parent 17bcdb1 commit 185e5d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PYPPinyinEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
m_input_mode != MODE_INIT &&
m_editors[m_input_mode]->text ().empty ()))
m_input_mode = MODE_INIT;

if (G_UNLIKELY (!retval && m_input_mode == MODE_SUGGESTION))
m_input_mode = MODE_INIT;
}

if (G_UNLIKELY (!retval))
Expand Down

0 comments on commit 185e5d5

Please sign in to comment.