summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;