diff options
author | Yuren Ju <yurenju@gmail.com> | 2010-10-20 18:44:23 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-10-22 20:38:26 +0900 |
commit | d43d04a9b92f7abd719cf3da666c23eee43fb67c (patch) | |
tree | d5b381ea45b024e4a4e744f46c1c3c74e2496f5d /src/PYConfig.cc | |
parent | 5a0ba0b751abe079fad8bc90316501cd489f50e6 (diff) | |
download | ibus-libpinyin-d43d04a9b92f7abd719cf3da666c23eee43fb67c.tar.gz ibus-libpinyin-d43d04a9b92f7abd719cf3da666c23eee43fb67c.tar.xz ibus-libpinyin-d43d04a9b92f7abd719cf3da666c23eee43fb67c.zip |
add options for enter key, original feature is commit original english text, new feature is commit first candidate phrase
Diffstat (limited to 'src/PYConfig.cc')
-rw-r--r-- | src/PYConfig.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PYConfig.cc b/src/PYConfig.cc index 77d619d..114b74c 100644 --- a/src/PYConfig.cc +++ b/src/PYConfig.cc @@ -47,6 +47,7 @@ const gchar * const CONFIG_SELECT_KEYS = "SelectKeys"; const gchar * const CONFIG_GUIDE_KEY = "GuideKey"; const gchar * const CONFIG_AUXILIARY_SELECT_KEY_F = "AuxiliarySelectKey_F"; const gchar * const CONFIG_AUXILIARY_SELECT_KEY_KP = "AuxiliarySelectKey_KP"; +const gchar * const CONFIG_ENTER_KEY = "EnterKey"; std::unique_ptr<PinyinConfig> PinyinConfig::m_instance; std::unique_ptr<BopomofoConfig> BopomofoConfig::m_instance; @@ -460,6 +461,7 @@ BopomofoConfig::readDefaultValues (void) m_guide_key = read (CONFIG_GUIDE_KEY, true); m_auxiliary_select_key_f = read (CONFIG_AUXILIARY_SELECT_KEY_F, true); m_auxiliary_select_key_kp = read (CONFIG_AUXILIARY_SELECT_KEY_KP, true); + m_enter_key = read (CONFIG_ENTER_KEY, true); } gboolean @@ -496,6 +498,8 @@ BopomofoConfig::valueChanged (const std::string & section, m_auxiliary_select_key_f = normalizeGValue (value, true); else if (CONFIG_AUXILIARY_SELECT_KEY_KP == name) m_auxiliary_select_key_kp = normalizeGValue (value, true); + else if (CONFIG_ENTER_KEY == name) + m_enter_key = normalizeGValue (value, true); else return FALSE; return TRUE; |