From 656b0b85c6d10fd880bb4bcca146368a69b0eb84 Mon Sep 17 00:00:00 2001 From: Kvaz1r Date: Sun, 8 Aug 2021 00:23:04 +0300 Subject: [PATCH] Fix With wxTE_PROCESS_ENTER and wxTE_MULTILINE without skipping --- src/univ/textctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index da1e5bce82..0d66222326 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -4763,7 +4763,8 @@ void wxTextCtrl::OnChar(wxKeyEvent& event) wxCommandEvent event(wxEVT_TEXT_ENTER, GetId()); InitCommandEvent(event); event.SetString(GetValue()); - GetEventHandler()->ProcessEvent(event); + if( GetEventHandler()->ProcessEvent(event) ) + return; } if ( IsSingleLine() )