Workaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost (Mac) (briceandre)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2013-09-14 20:46:43 +00:00
parent 8a1554ed3c
commit 88ff049184

View File

@ -4885,6 +4885,15 @@ void wxRichTextCaret::DoDraw(wxDC *dc)
void wxRichTextCaret::Notify()
{
#ifdef __WXMAC__
// Workaround for lack of kill focus event in wxOSX
if (m_richTextCtrl && !m_richTextCtrl->HasFocus())
{
Hide();
return;
}
#endif
m_flashOn = !m_flashOn;
Refresh();
}