summaryrefslogtreecommitdiff
path: root/src/PYPinyinEngine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/PYPinyinEngine.cc')
-rw-r--r--src/PYPinyinEngine.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/PYPinyinEngine.cc b/src/PYPinyinEngine.cc
index c871b7c..b8c8130 100644
--- a/src/PYPinyinEngine.cc
+++ b/src/PYPinyinEngine.cc
@@ -123,22 +123,18 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
case IBUS_grave:
m_input_mode = MODE_PUNCT;
break;
-#ifdef IBUS_BUILD_LUA_EXTENSION
case IBUS_i:
// do not enable lua extension when use double pinyin.
if (PinyinConfig::instance ().doublePinyin ())
break;
m_input_mode = MODE_EXTENSION;
break;
-#endif
-#ifdef IBUS_BUILD_ENGLISH_INPUT_MODE
case IBUS_v:
// do not enable english mode when use double pinyin.
if (PinyinConfig::instance ().doublePinyin ())
break;
m_input_mode = MODE_ENGLISH;
break;
-#endif
}
}
else {