From c09833e27d754198e62118a401110cc77eb27634 Mon Sep 17 00:00:00 2001 From: Seoyeon Kim Date: Fri, 7 Apr 2017 17:06:57 +0900 Subject: [PATCH] Fix the Keyboard disappeared issue in TextField - On the TV emulator, when the users press the OK key in DALi TextField application, the virtual keyboard(IME) disappeared. - Recently, new Key mapping table in TV was created : DALI_KEY_OK enum value == "Return" - In TextField, if the keyPressedName is "Return" && KeyEvent::Up, then called ClearKeyInputFocus(). Change-Id: I17b45b2de3a3ece524e19207a37a07262f37c7b9 Signed-off-by: Seoyeon Kim --- dali-toolkit/internal/controls/text-controls/text-field-impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp index a7bfc38..e8ff11f 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp @@ -1429,7 +1429,7 @@ bool TextField::OnKeyEvent( const KeyEvent& event ) { DALI_LOG_INFO( gLogFilter, Debug::Verbose, "TextField::OnKeyEvent %p keyCode %d\n", mController.Get(), event.keyCode ); - if( Dali::DALI_KEY_ESCAPE == event.keyCode || "Return" == event.keyPressedName ) // Make a Dali key code for this + if( Dali::DALI_KEY_ESCAPE == event.keyCode ) // Make a Dali key code for this { // Make sure ClearKeyInputFocus when only key is up if( event.state == KeyEvent::Up ) -- 2.7.4