From c9618e66cdfc520ce1cf2048b458937ba4a4ba6e Mon Sep 17 00:00:00 2001 From: Marcin Strakowski Date: Thu, 19 Feb 2015 16:13:48 +0100 Subject: [PATCH] After changed edit type, IME state doesn't change. When we change input box type (eg. Enter, Done, Alpha, Numeric), IME has to change also its appearance. Sometimes on mobile platform keyboard doesn't change its layout; even when we requested for this. This patch is workaround for platform issue and triggers new layout by hide/show on IME. Bug: http://168.219.209.56/jira/i#browse/TNEF-231 Reviewed by: Antonio Gomes, Piotr Grad Change-Id: I9d5562986f034aae2795bcd66b1173eb7a2d90de Signed-off-by: Marcin Strakowski --- tizen_src/impl/browser/renderer_host/im_context_efl.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tizen_src/impl/browser/renderer_host/im_context_efl.cc b/tizen_src/impl/browser/renderer_host/im_context_efl.cc index 17714c7..f28b635 100644 --- a/tizen_src/impl/browser/renderer_host/im_context_efl.cc +++ b/tizen_src/impl/browser/renderer_host/im_context_efl.cc @@ -217,6 +217,13 @@ void IMContextEfl::UpdateInputMethodState(ui::TextInputType type, bool show_if_needed) { if (current_type_ != type || can_compose_inline_ != can_compose_inline) { UpdateInputMethodType(type, ui::TEXT_INPUT_MODE_DEFAULT, can_compose_inline); + // Workaround on platform issue: + // http://107.108.218.239/bugzilla/show_bug.cgi?id=11494 + // Keyboard layout doesn't update after change. + if (IsIMFVisible(context_) || show_if_needed) { + HidePanel(); + ShowPanel(); + } } IM_CTX_LOG; -- 2.7.4