Ticket #15404 (new defect)
wxRichTextCtrl : caret does not disappear when focus is lost (Mac)
|Reported by:||briceandre||Owned by:|
I have a problem with wxRichTextCtrl under mac (wxWidgets 2.9.4) : when leaving the control, the caret remains displayed.
After some investigation, I found that the cause of the bug is that the control never receives the wxFocusEvent when the focus is lost.
I did not found why the focus event is not received, but I found a simple workaround : when the caret blinks, I check if the control is still displayed. If no, I hide the caret.
PS: in order to apply the workaround described here above, one shall replace the function "wxRichTextCaret::Notify" by the following:
if (m_richTextCtrl &&
m_flashOn = !m_flashOn;