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
|
// stc
|
||||||
EVT_STC_MARGINCLICK (wxID_ANY, Edit::OnMarginClick)
|
EVT_STC_MARGINCLICK (wxID_ANY, Edit::OnMarginClick)
|
||||||
EVT_STC_CHARADDED (wxID_ANY, Edit::OnCharAdded)
|
EVT_STC_CHARADDED (wxID_ANY, Edit::OnCharAdded)
|
||||||
EVT_STC_KEY( wxID_ANY , Edit::OnKey )
|
|
||||||
|
|
||||||
EVT_KEY_DOWN( Edit::OnKeyDown )
|
EVT_KEY_DOWN( Edit::OnKeyDown )
|
||||||
wxEND_EVENT_TABLE()
|
wxEND_EVENT_TABLE()
|
||||||
@@ -210,11 +209,6 @@ void Edit::OnEditClear (wxCommandEvent &WXUNUSED(event)) {
|
|||||||
Clear ();
|
Clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Edit::OnKey (wxStyledTextEvent &WXUNUSED(event))
|
|
||||||
{
|
|
||||||
wxMessageBox("OnKey");
|
|
||||||
}
|
|
||||||
|
|
||||||
void Edit::OnKeyDown (wxKeyEvent &event)
|
void Edit::OnKeyDown (wxKeyEvent &event)
|
||||||
{
|
{
|
||||||
if (CallTipActive())
|
if (CallTipActive())
|
||||||
|
@@ -104,7 +104,6 @@ public:
|
|||||||
// stc
|
// stc
|
||||||
void OnMarginClick (wxStyledTextEvent &event);
|
void OnMarginClick (wxStyledTextEvent &event);
|
||||||
void OnCharAdded (wxStyledTextEvent &event);
|
void OnCharAdded (wxStyledTextEvent &event);
|
||||||
void OnKey (wxStyledTextEvent &event);
|
|
||||||
|
|
||||||
void OnKeyDown(wxKeyEvent &event);
|
void OnKeyDown(wxKeyEvent &event);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user