diff options
| author | Peng Wu <alexepico@gmail.com> | 2025-01-09 11:46:00 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2025-01-09 11:46:00 +0800 |
| commit | 185e5d54d4f5f3df985446bd6fbde9f88d075a8b (patch) | |
| tree | 54f234e50b43b43e305160ecd500abdf812d1c09 /src | |
| parent | 17bcdb18708fba5c91c0b37b5dde321ef16aa068 (diff) | |
| download | ibus-libpinyin-185e5d54d4f5f3df985446bd6fbde9f88d075a8b.tar.gz ibus-libpinyin-185e5d54d4f5f3df985446bd6fbde9f88d075a8b.tar.xz ibus-libpinyin-185e5d54d4f5f3df985446bd6fbde9f88d075a8b.zip | |
Fix PinyinEngine::processKeyEvent method
Diffstat (limited to 'src')
| -rw-r--r-- | src/PYPPinyinEngine.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PYPPinyinEngine.cc b/src/PYPPinyinEngine.cc index d6681f5..04cdd3a 100644 --- a/src/PYPPinyinEngine.cc +++ b/src/PYPPinyinEngine.cc @@ -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)) |
