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:
committed by
Artur Wieczorek
parent
e68cafaf94
commit
bac4d24bf9
@@ -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())
|
||||
|
Reference in New Issue
Block a user