diff options
author | Sungmin Kwak <sungmin.kwak@samsung.com> | 2018-03-13 14:25:06 +0900 |
---|---|---|
committer | Jihoon Kim <jihoon48.kim@samsung.com> | 2018-03-19 00:50:41 +0000 |
commit | 6f8295aae8778d5fc9b8abfe15a9db7013017aef (patch) | |
tree | f8fa45f81481201d8b215e512d010c20b9631eb7 /ism/extras | |
parent | 32a28813bffe7fb24294710b783e27be56bc4c2b (diff) | |
download | isf-6f8295aae8778d5fc9b8abfe15a9db7013017aef.tar.gz isf-6f8295aae8778d5fc9b8abfe15a9db7013017aef.tar.bz2 isf-6f8295aae8778d5fc9b8abfe15a9db7013017aef.zip |
Change the keyboard mode rule on focus-in event
In TV specific, set the keyboard mode to SW only when the focus state is changed from OUT to IN
Change-Id: Ia02f06b6f13c36e21d455de3b5594b594c3e443b
(cherry picked from commit d8bc8fe3ab3af93a7ed1b5ac68422a6dd0a66e1a)
Diffstat (limited to 'ism/extras')
-rw-r--r-- | ism/extras/wayland_immodule/wayland_imcontext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ism/extras/wayland_immodule/wayland_imcontext.c b/ism/extras/wayland_immodule/wayland_imcontext.c index 6a75c037..61ee1b56 100644 --- a/ism/extras/wayland_immodule/wayland_imcontext.c +++ b/ism/extras/wayland_immodule/wayland_imcontext.c @@ -2800,6 +2800,8 @@ _prediction_hint_data_foreach_cb(const Eina_Hash *hash, const void *key, void wayland_im_context_focus_in(Ecore_IMF_Context *ctx) { + Eina_Bool focused = g_focused; + LOGD ("ctx : %p. enable : %d, on demand : %d", ctx, ecore_imf_context_input_panel_enabled_get(ctx), ecore_imf_context_input_panel_show_on_demand_get (ctx)); @@ -2824,7 +2826,8 @@ wayland_im_context_focus_in(Ecore_IMF_Context *ctx) } if (_TV) { - if (hw_keyboard_mode == EINA_TRUE) { + // Set to SW keyboard mode only when the focus state is changed from OUT to IN. + if (!focused && hw_keyboard_mode == EINA_TRUE) { vconf_set_bool (VCONFKEY_ISF_HW_KEYBOARD_INPUT_DETECTED, 0); hw_keyboard_mode = EINA_FALSE; } |