From c8cb673aa276994b880dbb85e330be9f81bb95b9 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 17 Mar 2017 17:14:39 +0100 Subject: [PATCH] Propagate EVT_CONTEXT_MENU if standard Scintilla context menu wasn't displayed, cont. Add missing modifications in stc.cpp template for cbbd7b44b2. --- src/stc/stc.cpp.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stc/stc.cpp.in b/src/stc/stc.cpp.in index b18f20f669..77208d0132 100644 --- a/src/stc/stc.cpp.in +++ b/src/stc/stc.cpp.in @@ -763,7 +763,8 @@ void wxStyledTextCtrl::OnContextMenu(wxContextMenuEvent& evt) { if (ht != wxHT_WINDOW_INSIDE) { pt = this->PointFromPosition(this->GetCurrentPos()); } - m_swx->DoContextMenu(Point(pt.x, pt.y)); + if ( !m_swx->DoContextMenu(Point(pt.x, pt.y)) ) + evt.Skip(); }