diff options
author | Peng Wu <alexepico@gmail.com> | 2016-08-23 10:11:19 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-08-23 10:11:19 +0800 |
commit | 6a2db8748b9ab84ae1d0ae9e60589a9051f2a27a (patch) | |
tree | 446bbea34fbdf9f6e170592ab9739cfc6de23fd3 | |
parent | 8c348864fc71c1f7f77580aee4cf5193f86d6ef8 (diff) | |
download | ibus-libzhuyin-6a2db8748b9ab84ae1d0ae9e60589a9051f2a27a.tar.gz ibus-libzhuyin-6a2db8748b9ab84ae1d0ae9e60589a9051f2a27a.tar.xz ibus-libzhuyin-6a2db8748b9ab84ae1d0ae9e60589a9051f2a27a.zip |
fixes full punctuation in English mode
-rw-r--r-- | src/ZYFallbackEditor.cc | 8 | ||||
-rw-r--r-- | src/ZYZhuyinProperties.cc | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ZYFallbackEditor.cc b/src/ZYFallbackEditor.cc index e61bb74..56d4e96 100644 --- a/src/ZYFallbackEditor.cc +++ b/src/ZYFallbackEditor.cc @@ -45,7 +45,13 @@ FallbackEditor::processPunct (guint keyval, guint keycode, guint modifiers) /* Punctuation character */ if (is_half_punct (keyval)) { - commit (keyval); + if(G_UNLIKELY (m_props.modeFullPunct ())) { + String punct; + half_punct_to_full_punct (keyval, punct); + commit (punct); + } else { + commit (keyval); + } return TRUE; } diff --git a/src/ZYZhuyinProperties.cc b/src/ZYZhuyinProperties.cc index aeab138..4b0c469 100644 --- a/src/ZYZhuyinProperties.cc +++ b/src/ZYZhuyinProperties.cc @@ -118,8 +118,10 @@ ZhuyinProperties::toggleModeChinese (void) _("Switch to Chinese Mode")); updateProperty (m_prop_chinese); +#if 0 m_prop_full_punct.setSensitive (m_mode_chinese); updateProperty (m_prop_full_punct); +#endif } void |