diff options
Diffstat (limited to 'src/ZYZZhuyinEditor.cc')
-rw-r--r-- | src/ZYZZhuyinEditor.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc index 7593f62..60ba093 100644 --- a/src/ZYZZhuyinEditor.cc +++ b/src/ZYZZhuyinEditor.cc @@ -243,9 +243,9 @@ gboolean ZhuyinEditor::insert (guint keyval, guint keycode, guint modifiers) { /* let client applications to handle shortcut key event */ - modifiers = cmshm_filter (modifiers); + modifiers = scmshm_filter (modifiers); - if (modifiers != 0 && m_text.empty ()) + if (cmshm_filter (modifiers) != 0 && m_text.empty ()) return FALSE; gchar ** symbols = NULL; @@ -259,19 +259,19 @@ ZhuyinEditor::insert (guint keyval, guint keycode, guint modifiers) return TRUE; } - if (insertPunct (keyval)) { + if (insertPunct (keyval, keycode, modifiers)) { updateZhuyin (); update (); return TRUE; } - if (insertEnglish (keyval)) { + if (insertEnglish (keyval, keycode, modifiers)) { updateZhuyin (); update (); return TRUE; } - if (insertNumbers (keyval)) { + if (insertNumbers (keyval, keycode, modifiers)) { updateZhuyin (); update (); return TRUE; |