diff options
author | Jihoon Kim <jihoon48.kim@samsung.com> | 2021-02-10 11:49:21 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2021-02-10 14:22:04 +0900 |
commit | ef3c8ceb2fee42f07c7c02fb31cc92e6146a9c03 (patch) | |
tree | 3894e3c70821f32f0c1266ac35d65ac1407c4327 /src | |
parent | 19482eac58c1c26a24f1fc97c14c96761d8c9173 (diff) | |
download | ise-default-ef3c8ceb2fee42f07c7c02fb31cc92e6146a9c03.tar.gz ise-default-ef3c8ceb2fee42f07c7c02fb31cc92e6146a9c03.tar.bz2 ise-default-ef3c8ceb2fee42f07c7c02fb31cc92e6146a9c03.zip |
Refactoring for increasing readability
Change-Id: Id4bb22de0da5f60169546efd5f36c58d4f545c62
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ise.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ise.cpp b/src/ise.cpp index cf10f5c..ea84389 100644 --- a/src/ise.cpp +++ b/src/ise.cpp @@ -1542,11 +1542,16 @@ ise_show(int ic) } if (ic == keyboard_state->focused_ic) { - if (keyboard_state->layout == ISE_LAYOUT_STYLE_PHONENUMBER || - keyboard_state->layout == ISE_LAYOUT_STYLE_IP || - keyboard_state->layout == ISE_LAYOUT_STYLE_MONTH || - keyboard_state->layout == ISE_LAYOUT_STYLE_NUMBERONLY) { - ime_set_imengine(DEFAULT_KEYBOARD_ISE_UUID); + switch (keyboard_state->layout) + { + case ISE_LAYOUT_STYLE_PHONENUMBER: + case ISE_LAYOUT_STYLE_IP: + case ISE_LAYOUT_STYLE_MONTH: + case ISE_LAYOUT_STYLE_NUMBERONLY: + ime_set_imengine(DEFAULT_KEYBOARD_ISE_UUID); + break; + default: + break; } } |