if (!enableState)
{
- if (_pEditPresenter->IsCopyPasteManagerExist())
- {
- _pEditPresenter->InitializeCopyPasteManager();
- }
-
- if (__internalFocus)
- {
- if (_pEditPresenter->IsKeypadEnabled())
- {
- _pEditPresenter->HideKeypad(true);
- }
- else
- {
- SetFocused(false);
- }
- __internalFocus = false;
- }
+ _pEditPresenter->ChangeToUnbindState();
+ __internalFocus = false;
}
Invalidate();
if (!visibleState)
{
- if (_pEditPresenter->IsCopyPasteManagerExist())
- {
- _pEditPresenter->InitializeCopyPasteManager();
- }
-
- if (__internalFocus)
- {
- if (_pEditPresenter->IsKeypadEnabled())
- {
- _pEditPresenter->HideKeypad(true);
- }
- else
- {
- SetFocused(false);
- }
- __internalFocus = false;
- }
+ _pEditPresenter->ChangeToUnbindState();
+ __internalFocus = false;
}
Invalidate();
void
_EditPresenter::OnFrameMinimized(const _Frame& source)
{
+ return;
}
void
_EditPresenter::OnFrameRestored(const _Frame& source)
{
+ return;
+}
+
+void
+_EditPresenter::ChangeToUnbindState(void)
+{
+ if (IsCopyPasteManagerExist())
+ {
+ InitializeCopyPasteManager();
+ }
+
+ if (__pEdit->IsInternalFocused())
+ {
+ if (IsKeypadEnabled())
+ {
+ HideKeypad(true);
+ }
+ else
+ {
+ __pEdit->SetFocused(false);
+ __isInputConnectionBound = false;//forcely set, OnFocusLost callback can be missed in special condition.
+ }
+ }
+
+ return;
}
bool
virtual result Draw(Tizen::Graphics::Canvas& canvas);
virtual result DrawCursor(Tizen::Graphics::Canvas& canvas, Tizen::Graphics::FloatRectangle& cursorRect, bool isCursorOpaque);
virtual result DrawScrollBar(void);
+ virtual void ChangeToUnbindState(void);
virtual bool OnFocusGained(void);
virtual bool OnFocusLost(void);