From: Seoyeon Kim Date: Fri, 7 Apr 2017 08:06:57 +0000 (+0900) Subject: Fix the Keyboard disappeared issue in TextField X-Git-Tag: dali_1.2.35~2^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=refs%2Fchanges%2F49%2F123849%2F1 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 --- 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 )