Don't handle deprecated event in stc sample

EVT_STC_KEY is not generated and there is no reason to handle it.

See #17688.
This commit is contained in:
New Pagodi
2017-02-16 18:19:16 +01:00
committed by Artur Wieczorek
parent e68cafaf94
commit bac4d24bf9
2 changed files with 0 additions and 7 deletions

View File

@@ -114,7 +114,6 @@ wxBEGIN_EVENT_TABLE (Edit, wxStyledTextCtrl)
// stc
EVT_STC_MARGINCLICK (wxID_ANY, Edit::OnMarginClick)
EVT_STC_CHARADDED (wxID_ANY, Edit::OnCharAdded)
EVT_STC_KEY( wxID_ANY , Edit::OnKey )
EVT_KEY_DOWN( Edit::OnKeyDown )
wxEND_EVENT_TABLE()
@@ -210,11 +209,6 @@ void Edit::OnEditClear (wxCommandEvent &WXUNUSED(event)) {
Clear ();
}
void Edit::OnKey (wxStyledTextEvent &WXUNUSED(event))
{
wxMessageBox("OnKey");
}
void Edit::OnKeyDown (wxKeyEvent &event)
{
if (CallTipActive())