From 931ee42fa0295081549b90168ea3242ac5186add Mon Sep 17 00:00:00 2001 From: Changyong Jeon Date: Thu, 2 May 2013 10:25:01 +0900 Subject: [PATCH] Resolved N_SE-36573 issue Change-Id: If6de1cd55cd1a091e288a6c5a78fd1be950d9f79 --- src/ClEventSearcherForm.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/ClEventSearcherForm.cpp b/src/ClEventSearcherForm.cpp index 335e9ce..74dbc36 100644 --- a/src/ClEventSearcherForm.cpp +++ b/src/ClEventSearcherForm.cpp @@ -186,6 +186,7 @@ EventSearcherForm::OnActionPerformed(const Control& source, int actionId) void EventSearcherForm::OnTextValueChanged(const Control& source) { + AppLogDebug("Enter"); if (__pPm->GetSearchText() != __pSearchBarInput->GetText()) { __pPm->SearchEvent(__pSearchBarInput->GetText()); @@ -196,6 +197,7 @@ EventSearcherForm::OnTextValueChanged(const Control& source) void EventSearcherForm::OnTextValueChangeCanceled(const Control& source) { + AppLogDebug("Enter"); if (__pPm->GetSearchText() != __pSearchBarInput->GetText()) { __pPm->SearchEvent(__pSearchBarInput->GetText()); @@ -426,34 +428,25 @@ EventSearcherForm::OnKeypadWillOpen(Control& source) void EventSearcherForm::OnKeypadOpened(Control& source) { - Invalidate(true); } void EventSearcherForm::OnKeypadClosed(Control& source) { - String text = __pSearchBarInput->GetText(); - __pSearchBarInput->SetMode(SEARCH_BAR_MODE_NORMAL); - __pSearchBarInput->SetText(text); - Invalidate(true); } void EventSearcherForm::OnKeypadActionPerformed(Control& source, KeypadAction keypadAction) { - if (keypadAction == KEYPAD_ACTION_SEARCH || keypadAction == KEYPAD_ACTION_ENTER) + AppLogDebug("Enter"); + if (keypadAction == KEYPAD_ACTION_SEARCH) { - SetFocus(); - if (__pPm->GetSearchText() != __pSearchBarInput->GetText()) { __pPm->SearchEvent(__pSearchBarInput->GetText()); __pGroupedListViewEvents->UpdateList(); } - String text = __pSearchBarInput->GetText(); - __pSearchBarInput->SetMode(SEARCH_BAR_MODE_NORMAL); - __pSearchBarInput->SetText(text); - __pSearchBarInput->Invalidate(false); + __pSearchBarInput->HideKeypad(); } } -- 2.7.4