}
}
- if ((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible) || (__isKeypadCommandButtonVisible && __pCommandButton && __pCommandButton->GetVisibleState()))
+ if ((__isUSBKeyboardConnected && __isKeypadCommandButtonVisible))
+ {
+ __pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
+ }
+ else if (__isKeypadCommandButtonVisible && __pCommandButton && __pCommandButton->GetVisibleState())//already command exist in usb mode
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
}
if (!__isKeypadExist)
{
- if (__pCommandButton && !__pCommandButton->GetVisibleState())
+ if (__isKeypadCommandButtonVisible)
+ {
+ if (!__pCommandButton || (__pCommandButton && !__pCommandButton->GetVisibleState()))
+ {
+ __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);
+ }
+ }
+ else
{
__pEdit->SendKeypadEvent(GetKeypadAction(), CORE_KEYPAD_EVENT_STATUS_CREATED);
__pEdit->AttachScrollPanelEvent();