cursorBounds.height -= cursorHeightDiff;
}
- if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height)
+ if ((cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height) &&
+ (cursorBounds.y < textBounds.y + textBounds.height))
{
float cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1.0f;
cursorBounds.height -= cursorHeightDiff;
cursorBounds.height -= cursorHeightDiff;
}
- if (cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height)
+ if ((cursorBounds.y + cursorBounds.height > textBounds.y + textBounds.height) &&
+ (cursorBounds.y < textBounds.y + textBounds.height))
{
float cursorHeightDiff = cursorBounds.y + cursorBounds.height - textBounds.y - textBounds.height - 1.0f;
cursorBounds.height -= cursorHeightDiff;
}
}
- if (!__isUSBKeyboardConnected && !__isKeypadExist)
+ if (!__isUSBKeyboardConnected && !__isKeypadExist && !IsViewModeEnabled())
{
needToCreatePopup = false;
}
{
SysLog(NID_UI_CTRL, "OnLongPressGestureDetected");
+ __isTouchPressed = false;
+
_AccessibilityManager* pAccessibilityManager = _AccessibilityManager::GetInstance();
SysTryReturn(NID_UI_CTRL, pAccessibilityManager, false, E_SYSTEM, "pAccessibilityManager is null");
if (pAccessibilityManager->IsActivated())
return true;
}
- __isTouchPressed = false;
FloatRectangle cursorBounds;
InitializeCopyPasteManager();
if (IsClipped() || GetTextLength())
__pTextBuffer[i] = 0;
}
- SetCursorPosition(startCursorPosition);
-
AdjustRTLTextAlignment(EDIT_TEXT_TYPE_INPUT);
__pTextObject->SetRange(startCursorPosition, endCursorPosition - startCursorPosition);
r = __pTextObject->NotifyTextChanged(__pTextBuffer, 0, currentLength, -(endCursorPosition - startCursorPosition));
r = __pTextObject->Compose();
+ SetCursorPosition(startCursorPosition);
+
if (__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE)
{
AdjustFlexibleHeight();