diff --git a/aegisub/src/dialog_search_replace.cpp b/aegisub/src/dialog_search_replace.cpp index 508b8de11..cb06809f9 100644 --- a/aegisub/src/dialog_search_replace.cpp +++ b/aegisub/src/dialog_search_replace.cpp @@ -192,26 +192,10 @@ END_EVENT_TABLE() /// @brief Close /// @param event /// -void DialogSearchReplace::OnClose (wxCommandEvent &event) { +void DialogSearchReplace::OnClose (wxCommandEvent &) { 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 /// @param mode /// @return diff --git a/aegisub/src/dialog_search_replace.h b/aegisub/src/dialog_search_replace.h index 40dccf09b..9742ca54b 100644 --- a/aegisub/src/dialog_search_replace.h +++ b/aegisub/src/dialog_search_replace.h @@ -165,7 +165,6 @@ private: void OnReplaceAll (wxCommandEvent &event); void OnSetFocus (wxFocusEvent &event); void OnKillFocus (wxFocusEvent &event); - void OnKeyDown (wxKeyEvent &event); public: DialogSearchReplace(wxWindow *parent,bool hasReplace,wxString name);