Apply patch (plus some additional changes) upgrading Scintilla to version 2.03. Closes #11765, #11748, #11346
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,6 +102,7 @@ BEGIN_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 )
|
||||
END_EVENT_TABLE()
|
||||
|
||||
Edit::Edit (wxWindow *parent, wxWindowID id,
|
||||
@@ -189,6 +190,11 @@ void Edit::OnEditClear (wxCommandEvent &WXUNUSED(event)) {
|
||||
Clear ();
|
||||
}
|
||||
|
||||
void Edit::OnKey (wxStyledTextEvent &event)
|
||||
{
|
||||
wxMessageBox("OnKey");
|
||||
}
|
||||
|
||||
void Edit::OnEditCut (wxCommandEvent &WXUNUSED(event)) {
|
||||
if (GetReadOnly() || (GetSelectionEnd()-GetSelectionStart() <= 0)) return;
|
||||
Cut ();
|
||||
|
Reference in New Issue
Block a user