Fix the Keyboard disappeared issue in TextField 49/123849/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 7 Apr 2017 08:06:57 +0000 (17:06 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 7 Apr 2017 08:11:41 +0000 (17:11 +0900)
- 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 <seoyeon2.kim@samsung.com>
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp

index a7bfc38..e8ff11f 100644 (file)
@@ -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 )