if (__isEnterKeyPressed)
{
__isEnterKeyPressed = false;
- __isFocused = true;
+
+ if (__pEditDate->IsFocusModeStateEnabled())
+ {
+ __isFocused = true;
+ }
}
int localeDateFormat = dateTimeUtils.GetLocaleDateFormat();
if (__focusId == DATETIME_ID_NONE)