diff options
Diffstat (limited to 'src/ZYZZhuyinEditor.cc')
-rw-r--r-- | src/ZYZZhuyinEditor.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc index ea75809..062c3e2 100644 --- a/src/ZYZZhuyinEditor.cc +++ b/src/ZYZZhuyinEditor.cc @@ -154,7 +154,7 @@ ZhuyinEditor::updatePreeditText (void) char sym = section[i]; gchar ** symbols = NULL; /* append bopomofo symbol except for DaChen26. */ - assert (zhuyin_in_chewing_keyboard (m_instance, sym, &symbols)); + check_result (zhuyin_in_chewing_keyboard (m_instance, sym, &symbols)); assert (NULL != symbols[0]); m_preedit_text += symbols[0]; g_strfreev (symbols); @@ -286,6 +286,9 @@ ZhuyinEditor::processSpace (guint keyval, guint keycode, guint modifiers) gboolean ZhuyinEditor::processKeyEvent (guint keyval, guint keycode, guint modifiers) { + if (modifiers & IBUS_MOD4_MASK) + return FALSE; + modifiers &= (IBUS_SHIFT_MASK | IBUS_CONTROL_MASK | IBUS_MOD1_MASK | |