}
}
- if (__isUSBKeyboardConnected && __isKeypadCommandButtonVisible)
+ if ((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible) || (__isKeypadCommandButtonVisible && __pCommandButton && __pCommandButton->GetVisibleState()))
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
- else if(__isUSBKeyboardConnected && __isKeypadCommandButtonVisible && !__isInputConnectionBound)
+ else if((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible && !__isInputConnectionBound) ||
+ (__isUSBKeyboardConnected && __isClipboardExist))
{
//do nothing
}
__pParentForm->Draw();
}
- __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CLOSE);
+ if (!__isKeypadCommandButtonVisible)
+ {
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CLOSE);
+ }
+ else
+ {
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
+ }
}
__clipboardConnected = false;
if (IsBlocked() == true && editStatus == EDIT_STATUS_HIGHLIGHTED)
{
__pTextObject->SetBackgroundColor(__pEdit->GetColor(EDIT_STATUS_HIGHLIGHTED), 0, __pTextObject->GetTextLength());
- __pTextObject->SetForegroundColor(__pEdit->GetTextColor(editStatus), 0, __pTextObject->GetTextLength());
__pTextObject->SetBlock(true);
__pTextObject->SetRange(__blockStartPos, __cursorPos - __blockStartPos);
}
ReleaseTextBlock();
}
+ if (__isCopyPasteManagerExist)
+ {
+ if (IsBlocked())
+ {
+ __pCopyPasteManager->SetTextBlockReleaseFlag(false);
+ }
+ InitializeCopyPasteManager();
+ }
+
SysTryReturnVoidResult(NID_UI_CTRL, pClipboardItem != null, E_SYSTEM, "[E_SYSTEM] _EditPresenter::OnClipboardPopupClosed: Unable to get the clipboarditem instance.");
String* pClipString = dynamic_cast<String*>(pClipboardItem->GetData());
InitializeCopyPasteManager();
int length = text.GetLength();
- if ((__pEdit->GetEditStyle() & EDIT_STYLE_FLEXIBLE) || (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER))
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_VIEWER)
{
if (__limitLength <= length)
{
r = DeleteText(0, textLength);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ __pEdit->UpdateAccessibilityElement(EDIT_ACCESSIBILITY_ELEMENT_TYPE_CLEAR_ICON);
+
return r;
}
__pEditModel->SetKeypadEnabled(enable);
+ if (__pInputConnection)
+ {
+ __pInputConnection->SetKeyEventSkipped(!enable);
+ }
+
return;
}
if (IsKeypadEnabled() == false)
{
- r = ShowKeypad(); //Just bind to input connection and skip to open fullscreen keypad
- return r;
+ __pEdit->SetFocused();
+ return E_SUCCESS;
}
if (__pFullscreenKeypad)
result
_EditPresenter::ShowKeypad(bool focus)
{
+ if (IsKeypadEnabled() == false)
+ {
+ return E_SUCCESS;
+ }
+
if (focus)
{
__pEdit->SetFocused();
+ return E_SUCCESS;
}
if (!__isInitialized)
SetCurrentLanguage(initialKeypadLanguage);
}
//layout rearrange
- if (IsKeypadEnabled())
+ if (__isUSBKeyboardConnected)
{
- if (__isUSBKeyboardConnected)
+ SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB ON mode!!!!");
+ if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
{
- SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB ON mode!!!!");
- if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
- {
- CheckInitialFooterVisibleState();
- }
-
- if (__isKeypadCommandButtonVisible)
- {
- __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CREATED);
- __pEdit->AttachScrollPanelEvent();
- __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CREATED);
+ CheckInitialFooterVisibleState();
+ }
- SetFooterVisible(false);
- ChangeLayoutInternal(__pEdit->GetOrientation());
- AdjustParentPanelHeight(false);
+ if (__isKeypadCommandButtonVisible)
+ {
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CREATED);
+ __pEdit->AttachScrollPanelEvent();
+ __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CREATED);
- __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_OPEN);
- __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_OPENED);
- }
+ SetFooterVisible(false);
+ ChangeLayoutInternal(__pEdit->GetOrientation());
+ AdjustParentPanelHeight(false);
- ScrollPanelToExposedRegion(true);
- ScrollPanelToCursorPosition();
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_OPEN);
+ __pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_OPENED);
}
- else
- {
- SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB OFF mode!!!!");
- __isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //call once only from here.
+ ScrollPanelToExposedRegion(true);
+ ScrollPanelToCursorPosition();
+ }
+ else
+ {
+ SysLog(NID_UI_CTRL, "[EDIT]ShowKeypad called in USB OFF mode!!!!");
+
+ __isKeypadExist = CheckKeypadExist(__pEdit->GetOrientation()); //call once only from here.
- if (!__isKeypadExist)
+ if (!__isKeypadExist)
+ {
+ if (__pCommandButton && !__pCommandButton->GetVisibleState())
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CREATED);
__pEdit->AttachScrollPanelEvent();
__pEdit->SendScrollPanelEvent(CORE_OVERLAY_CONTROL_CREATED);
-
- if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
- {
- CheckInitialFooterVisibleState();
- }
}
- if (__isKeypadCommandButtonVisible)
+ if (__initialFooterVisibleStatus == EDIT_FOOTER_VISIBLE_STATUS_NONE)
{
- SetFooterVisible(false);
+ CheckInitialFooterVisibleState();
}
+ }
- if (__isKeypadExist)
- {
- ChangeLayoutInternal(__pEdit->GetOrientation());
- //ChangeLayoutInternal(__pEdit->GetOrientation(), false);
- ScrollPanelToExposedRegion(true);
- ScrollPanelToCursorPosition();
- if (__pParentForm)
- {
- __pParentForm->SetKeypadShowState(true);//First show keypad after dispose
- __pParentForm->Draw();
- }
- }
- else
+ if (__isKeypadCommandButtonVisible)
+ {
+ SetFooterVisible(false);
+ }
+
+ if (__isKeypadExist)
+ {
+ ChangeLayoutInternal(__pEdit->GetOrientation());
+ //ChangeLayoutInternal(__pEdit->GetOrientation(), false);
+ ScrollPanelToExposedRegion(true);
+ ScrollPanelToCursorPosition();
+ if (__pParentForm)
{
- __initialParentHeight = 0.0f;
- ScrollPanelToExposedRegion(true);
- ScrollPanelToCursorPosition();
+ __pParentForm->SetKeypadShowState(true);//First show keypad after dispose
+ __pParentForm->Draw();
}
-
- __pInputConnection->ShowInputPanel();
}
+ else
+ {
+ __initialParentHeight = 0.0f;
+ ScrollPanelToExposedRegion(true);
+ ScrollPanelToCursorPosition();
+ }
+
+ __pInputConnection->ShowInputPanel();
}
return E_SUCCESS;