diff options
author | Peng Wu <alexepico@gmail.com> | 2016-08-31 11:14:57 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-08-31 11:14:57 +0800 |
commit | 1d27fce3d4e5cb553a9dea324349e9e94e660cd5 (patch) | |
tree | 6a2c9e0e680b3bf9b81d61f9c11e47a27e00b497 /src/ZYFallbackEditor.cc | |
parent | 71474edf9a20a4dd7f427620b408406f57c427b0 (diff) | |
download | ibus-libzhuyin-1d27fce3d4e5cb553a9dea324349e9e94e660cd5.tar.gz ibus-libzhuyin-1d27fce3d4e5cb553a9dea324349e9e94e660cd5.tar.xz ibus-libzhuyin-1d27fce3d4e5cb553a9dea324349e9e94e660cd5.zip |
combine two full/width modes into one mode
Diffstat (limited to 'src/ZYFallbackEditor.cc')
-rw-r--r-- | src/ZYFallbackEditor.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ZYFallbackEditor.cc b/src/ZYFallbackEditor.cc index 56d4e96..9190922 100644 --- a/src/ZYFallbackEditor.cc +++ b/src/ZYFallbackEditor.cc @@ -31,11 +31,6 @@ FallbackEditor::processPunct (guint keyval, guint keycode, guint modifiers) { guint cmshm_modifiers = cmshm_filter (modifiers); - if (G_UNLIKELY (keyval == IBUS_period && cmshm_modifiers == IBUS_CONTROL_MASK)) { - m_props.toggleModeFullPunct (); - return TRUE; - } - /* check ctrl, alt, hyper, supper masks */ if (cmshm_modifiers != 0) return FALSE; @@ -45,7 +40,7 @@ FallbackEditor::processPunct (guint keyval, guint keycode, guint modifiers) /* Punctuation character */ if (is_half_punct (keyval)) { - if(G_UNLIKELY (m_props.modeFullPunct ())) { + if(G_UNLIKELY (m_props.modeFullWidth ())) { String punct; half_punct_to_full_punct (keyval, punct); commit (punct); @@ -76,7 +71,7 @@ FallbackEditor::processEnglish (guint keyval, guint keycode, guint modifiers) { /* English character */ if (is_half_english (keyval)) { - if (G_UNLIKELY (m_props.modeFullEnglish ())) { + if (G_UNLIKELY (m_props.modeFullWidth ())) { String english; half_english_to_full_english (keyval, english); commit (english); |