Languages

Menu
Sites
Language
Editfield with popup problem

Hi,

I have a problem when I add an Editfield to Popup. After focus to editfield, change text, I press back 3 times to dismiss popup. But editfield is disappear and Back event do not be sent to OnKeyReleased method of popup listener ( -> I can't close the popup)

Anybody can help me?

Responses

2 Replies
Alex Dem

Hi,
I have placed EditFiled (INPUT_STYLE_OVERLAY) onto Popup and added KeyEventListeners to both components.
If EditFiled is in focus And I have pressed KEY_BACK then OnKeyReleased does not occured. Only keypad disappears after KEY_BACK.
I need to press KEY_BACK one more time to close popup.

My 'on key release' code:

void
Popup1::OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode)
{
    AppLog("Popup1::OnKeyReleased");
	if (keyCode == KEY_BACK )
	   this->SetShowState(false);
	}
}

Alexey.

Alex Dem

one more note, just fyi:
You could use OnKeypadClosed  of IKeypadEventListener api if you want determine the moment when keypad was closed.
Also you could use this->SetFocus(); to remove focus from EditFiled to Popup.
Alexey.