Change-Id: I8275abba06f7ac30fe6429dfc8948103d490bfe7
Signed-off-by: sr.shashank <sr.shashank@samsung.com>
bool
_DateTimePresenter::OnKeyReleased(const _Control& source, const _KeyInfo& keyInfo)
{
+ _KeyCode keyCode = keyInfo.GetKeyCode();
+
+ if (keyCode == _KEY_ESC || keyCode == _KEY_BACK)
+ {
+ HandleSaveCancelAction(DATETIME_EVENT_ID_CANCEL);
+ return true;
+ }
+
if (!__keypadEnabled)
{
return false;
}
- _KeyCode keyCode = keyInfo.GetKeyCode();
if (__isPmButtonPressed == true && keyCode == _KEY_ENTER)
{
__isPm = (!__isPm);