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:
parent
8a1554ed3c
commit
88ff049184
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user