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:
@@ -4885,6 +4885,15 @@ void wxRichTextCaret::DoDraw(wxDC *dc)
|
|||||||
|
|
||||||
void wxRichTextCaret::Notify()
|
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;
|
m_flashOn = !m_flashOn;
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user