Shows the virtual keyboard when text-field receives a long-press. 35/46935/3
authorv.cebollada <v.cebollada@samsung.com>
Thu, 27 Aug 2015 08:42:03 +0000 (17:42 +0900)
committerVíctor Cebollada <v.cebollada@samsung.com>
Thu, 27 Aug 2015 09:41:38 +0000 (02:41 -0700)
Change-Id: I7854dc1489d5829894ed4cec35a7982c8da9c315
Signed-off-by: v.cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp

index 10d87a7..215bd59 100644 (file)
@@ -1130,7 +1130,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 )