From: Himanshu Date: Mon, 15 Jul 2013 04:36:30 +0000 (+0530) Subject: Hid the popups when Esc key is pressed X-Git-Tag: submit/tizen_2.2/20130716.172725~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=2e9a587c7052e711f4b797d889eb5f274dc72cb5;p=apps%2Fosp%2FGallery.git Hid the popups when Esc key is pressed Change-Id: I65324a91360ab3d66cf05f26e3a1f828dac30137 Signed-off-by: Himanshu --- diff --git a/src/GlAlbumListEditorForm.cpp b/src/GlAlbumListEditorForm.cpp index 3cabb66..55530cd 100644 --- a/src/GlAlbumListEditorForm.cpp +++ b/src/GlAlbumListEditorForm.cpp @@ -772,7 +772,7 @@ bool AlbumListEditorForm::OnKeyReleased(Control& source, const Tizen::Ui::KeyEve { AppLogDebug("ENTER"); - if (keyEventInfo.GetKeyCode() == KEY_BACK) + if (keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC) { __pDeletePopup->SetShowState(false); __pDeletePopup->Show(); diff --git a/src/GlFileListEditorForm.cpp b/src/GlFileListEditorForm.cpp index 2c33ea5..ef41843 100644 --- a/src/GlFileListEditorForm.cpp +++ b/src/GlFileListEditorForm.cpp @@ -1145,7 +1145,7 @@ FileListEditorForm::OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo { AppLogDebug("ENTER"); - if(keyEventInfo.GetKeyCode() == KEY_BACK) + if(keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC) { _overlayMsg = false; __pDeletePopup->SetShowState(false); diff --git a/src/GlSlideShowPopUp.cpp b/src/GlSlideShowPopUp.cpp index 2234b8a..2a5a10e 100644 --- a/src/GlSlideShowPopUp.cpp +++ b/src/GlSlideShowPopUp.cpp @@ -114,7 +114,7 @@ SlideShowPopUp::OnKeyReleased(Control& source, const Tizen::Ui::KeyEventInfo& ke { AppLogDebug("ENTER"); - if(keyEventInfo.GetKeyCode() == KEY_BACK) + if(keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC) { Popup::SetShowState(false); Popup::Show();