Propagate EVT_CONTEXT_MENU if standard Scintilla context menu wasn't displayed, cont.
Add missing modifications in stc.cpp template for cbbd7b44b2
.
This commit is contained 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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user