namespace Tizen { namespace Ui { namespace Controls
{
+const int EDIT_GESTURE_TAP_INTERVAL = 400;
+const int EDIT_GESTURE_TAP_MOVE_ALLOWANCE = 50;
class _EditInternalTouchEventListener
: public _ITouchEventListener
__pGestureTap = new (std::nothrow) _TouchTapGestureDetector;
SysTryReturn(NID_UI_CTRL, __pGestureTap, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Failed to create touch tap gesture.");
+
+ r = __pGestureTap->SetTapInterval(EDIT_GESTURE_TAP_INTERVAL);
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Failed to set TapInterval", GetErrorMessage(r));
+
+ r = __pGestureTap->SetMoveAllowance(EDIT_GESTURE_TAP_MOVE_ALLOWANCE);
+ SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Failed to set TapMoveAllowance", GetErrorMessage(r));
+
r = AddGestureDetector(*__pGestureTap);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Failed to add gesture detector", GetErrorMessage(r));
r = __pGestureTap->AddGestureListener(*this);
bool
_EditPresenter::OnLongPressGestureDetected(void)
{
+ SysLog(NID_UI_CTRL, "[EDIT] OnLongPressGestureDetected");
+
if (__isClearIconPressed)
{
return true;
bool
_EditPresenter::OnTapGestureDetected(void)
{
+ SysLog(NID_UI_CTRL, "[EDIT] OnTapGestureDetected");
+
if (IsInternalFocused() == false)
{
return true;
__pParentForm->SetKeypadShowState(true);//First show keypad after dispose
__pParentForm->Draw();
}
+ __isKeypadShowing = false;
}
else
{