bool
_Edit::OnTouchReleased(const _Control& source, const _TouchInfo& touchinfo)
{
- PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
+ if (__editStyle ^ EDIT_STYLE_VIEWER)
+ {
+ PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
+ }
return _pEditPresenter->OnTouchReleased(source, touchinfo);
}
_Edit::OnDetachingFromMainTree(void)
{
__isDestroyed = true;
-
+ if (_pEditPresenter->IsBounded())
+ {
+ DetachScrollPanelEvent();
+ }
return E_SUCCESS;
}
{
delete __pInputConnection;
__pInputConnection = null;
-
- if (__pEdit)
- {
- __pEdit->DetachScrollPanelEvent();
- }
}
delete __pTextObject;
{
result r = E_SUCCESS;
+ if (IsKeypadEnabled() == false)
+ {
+ r = ShowKeypad(); //Just bind to input connection and skip to open fullscreen keypad
+ return r;
+ }
+
if (__pFullscreenKeypad)
{
delete __pFullscreenKeypad;
}
ReplaceTextIntoPasswordHyphenString();
+ __isCursorChanged = true;
__pEdit->Invalidate();
}
bool
+_EditPresenter::IsBounded(void) const
+{
+ return __isInputConnectionBound;
+}
+
+bool
_EditPresenter::AdjustRTLTextAlignment(const _EditTextType textType)
{
result r = E_SUCCESS;
{
if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE)
{
- r = __pTextObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_MIDDLE);
+ r = __pGuideTextObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_MIDDLE);
}
else
{
- r = __pTextObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_TOP);
+ r = __pGuideTextObject->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_TOP);
}
if (r == E_SUCCESS)
{
void
_Keypad::OnActionPerformed(const _Control& source, int actionId)
{
+ bool isReCreationLock = false;
if ((actionId != COMMAND_DONE_BUTTON_ID) && (actionId != COMMAND_CANCEL_BUTTON_ID))
{
return;
}
__pChildEdit->HideKeypad();
+
+ if (__pCallerEdit)
+ {
+ __pCallerEdit->SetKeypadEnabled(false);
+ isReCreationLock = true;
+ }
Close();
+ if (isReCreationLock)
+ {
+ __pCallerEdit->SetKeypadEnabled(true);
+ }
CoreTextEventStatus textEventStatus = CORE_TEXT_EVENT_CHANGED;
if (actionId == COMMAND_DONE_BUTTON_ID)
virtual bool ValidatePastedText(const Tizen::Base::String& pastedText, Tizen::Base::String& replacedText);
void SendOpaqueCommand (const Tizen::Base::String& command);
Tizen::Ui::Animations::_VisualElement* GetTextVisualElement(void);
+ bool IsBounded(void) const;
protected:
void StopTitleSlidingTimer(void);