summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-09-20 14:52:47 +0800
committerPeng Wu <alexepico@gmail.com>2016-09-20 14:52:47 +0800
commit4a54b6dc9d09eb2011654d4f41e433fbd19095a7 (patch)
tree92e7e29cb49a9d115d78317278de8af6601d2fe6 /src
parente07ea48d15e995d82ebe0ca9028a153fb93cb674 (diff)
downloadibus-libzhuyin-4a54b6dc9d09eb2011654d4f41e433fbd19095a7.tar.gz
ibus-libzhuyin-4a54b6dc9d09eb2011654d4f41e433fbd19095a7.tar.xz
ibus-libzhuyin-4a54b6dc9d09eb2011654d4f41e433fbd19095a7.zip
fixes insert method
Diffstat (limited to 'src')
-rw-r--r--src/ZYZPhoneticEditor.cc2
-rw-r--r--src/ZYZPinyinEditor.cc4
-rw-r--r--src/ZYZZhuyinEditor.cc4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ZYZPhoneticEditor.cc b/src/ZYZPhoneticEditor.cc
index f82a4b2..7794243 100644
--- a/src/ZYZPhoneticEditor.cc
+++ b/src/ZYZPhoneticEditor.cc
@@ -960,7 +960,7 @@ PhoneticEditor::insertSymbol (guint keyval, guint keycode, guint modifiers)
{
/* for symbols. */
if (is_full_width_symbol (keyval)) {
- if (m_props.modeFullWidth () || modifiers & IBUS_SHIFT_MASK) {
+ if (m_props.modeFullWidth ()) {
String choice;
assert (convert_full_width_symbol (keyval, choice));
diff --git a/src/ZYZPinyinEditor.cc b/src/ZYZPinyinEditor.cc
index 5b5e9df..9696dd3 100644
--- a/src/ZYZPinyinEditor.cc
+++ b/src/ZYZPinyinEditor.cc
@@ -199,9 +199,9 @@ gboolean
PinyinEditor::insert (guint keyval, guint keycode, guint modifiers)
{
/* let client applications to handle shortcut key event */
- modifiers = scmshm_filter (modifiers);
+ modifiers = cmshm_filter (modifiers);
- if (cmshm_filter (modifiers) != 0 && m_text.empty ())
+ if (modifiers != 0 && m_text.empty ())
return FALSE;
if (IS_PINYIN (keyval)) {
diff --git a/src/ZYZZhuyinEditor.cc b/src/ZYZZhuyinEditor.cc
index 55e29e0..083ae65 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 = scmshm_filter (modifiers);
+ modifiers = cmshm_filter (modifiers);
- if (cmshm_filter (modifiers) != 0 && m_text.empty ())
+ if (modifiers != 0 && m_text.empty ())
return FALSE;
gchar ** symbols = NULL;