Remove unused OnKeyDown method from DialogSearchReplace

Originally committed to SVN as r5932.
This commit is contained in:
Thomas Goyne 2011-11-29 23:17:49 +00:00
parent 19503ef4f8
commit 0e260409fd
2 changed files with 1 additions and 18 deletions

View File

@ -192,26 +192,10 @@ END_EVENT_TABLE()
/// @brief Close /// @brief Close
/// @param event /// @param event
/// ///
void DialogSearchReplace::OnClose (wxCommandEvent &event) { void DialogSearchReplace::OnClose (wxCommandEvent &) {
Show(false); Show(false);
} }
/// @brief Key
/// @param event
///
void DialogSearchReplace::OnKeyDown (wxKeyEvent &event) {
//if (event.GetKeyCode() == WXK_ESCAPE) {
// Search.OnDialogClose();
// // Just hide
// Show(false);
//}
event.Skip();
}
/// @brief Find or replace /// @brief Find or replace
/// @param mode /// @param mode
/// @return /// @return

View File

@ -165,7 +165,6 @@ private:
void OnReplaceAll (wxCommandEvent &event); void OnReplaceAll (wxCommandEvent &event);
void OnSetFocus (wxFocusEvent &event); void OnSetFocus (wxFocusEvent &event);
void OnKillFocus (wxFocusEvent &event); void OnKillFocus (wxFocusEvent &event);
void OnKeyDown (wxKeyEvent &event);
public: public:
DialogSearchReplace(wxWindow *parent,bool hasReplace,wxString name); DialogSearchReplace(wxWindow *parent,bool hasReplace,wxString name);