Merge "System font family change to update font in TextField" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 28 Aug 2015 11:50:35 +0000 (04:50 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 28 Aug 2015 11:50:35 +0000 (04:50 -0700)
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp

index eeb7fa5..eb12543 100644 (file)
@@ -1133,7 +1133,15 @@ void TextField::OnPan( const PanGesture& gesture )
 
 void TextField::OnLongPress( const LongPressGesture& gesture )
 {
+  // Show the keyboard if it was hidden.
+  if (!VirtualKeyboard::IsVisible())
+  {
+    VirtualKeyboard::Show();
+  }
+
   mController->LongPressEvent( gesture.state, gesture.localPoint.x, gesture.localPoint.y );
+
+  SetKeyInputFocus();
 }
 
 bool TextField::OnKeyEvent( const KeyEvent& event )