From: Jihoon Kim Date: Tue, 25 Oct 2016 08:34:37 +0000 (+0900) Subject: Turn off auto punctuate as default in mobile profile X-Git-Tag: accepted/tizen/common/20161031.121938~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86b766b1606fe263caa47daf85e9cb3905ba5c26;p=platform%2Fcore%2Fuifw%2Fise-default.git Turn off auto punctuate as default in mobile profile Change-Id: I7985a5f8091ccec10adb6b3b7889ee68ef191cc8 Signed-off-by: Jihoon Kim --- diff --git a/src/config.cpp b/src/config.cpp index 7f48d3c..ca98c4b 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -30,24 +30,27 @@ using namespace scl; extern CSCLCore g_core; #ifdef _TV -#define SOUND_ON FALSE; -#define VIBRATION_ON FALSE; -#define PREVIEW_ON TRUE; +#define SOUND_ON FALSE +#define VIBRATION_ON FALSE +#define PREVIEW_ON TRUE +#define AUTOPUNCTUATE_ON TRUE #elif _WEARABLE -#define SOUND_ON TRUE; -#define VIBRATION_ON FALSE; -#define PREVIEW_ON FALSE; +#define SOUND_ON TRUE +#define VIBRATION_ON FALSE +#define PREVIEW_ON FALSE +#define AUTOPUNCTUATE_ON TRUE #else -#define SOUND_ON TRUE; -#define VIBRATION_ON TRUE; -#define PREVIEW_ON TRUE; +#define SOUND_ON TRUE +#define VIBRATION_ON TRUE +#define PREVIEW_ON TRUE +#define AUTOPUNCTUATE_ON FALSE #endif CONFIG_VALUES::CONFIG_VALUES() { keypad_mode = KEYPAD_MODE_QTY; // keypad_mode prediction_on = FALSE; // prediction_on auto_capitalise = TRUE; - auto_punctuate = TRUE; + auto_punctuate = AUTOPUNCTUATE_ON; sound_on = SOUND_ON; vibration_on = VIBRATION_ON; preview_on = PREVIEW_ON; @@ -87,7 +90,7 @@ void read_ise_config_values() { g_core.config_read_int(ISE_CONFIG_AUTO_CAPITALISE, integer_value); g_config_values.auto_capitalise = integer_value; - integer_value = 1; + integer_value = AUTOPUNCTUATE_ON; g_core.config_read_int(ISE_CONFIG_AUTO_PUNCTUATE, integer_value); g_config_values.auto_punctuate = integer_value; @@ -152,7 +155,7 @@ void reset_ise_config_values() { g_config_values.enabled_languages.clear(); g_config_values.enabled_languages.push_back("English"); g_config_values.auto_capitalise = TRUE; - g_config_values.auto_punctuate = TRUE; + g_config_values.auto_punctuate = AUTOPUNCTUATE_ON; g_config_values.sound_on = SOUND_ON; g_config_values.vibration_on = VIBRATION_ON; g_config_values.preview_on = PREVIEW_ON;