diff --git a/uppsrc/CtrlLib/RichTextView.cpp b/uppsrc/CtrlLib/RichTextView.cpp index 6538a951e..7325d69b4 100644 --- a/uppsrc/CtrlLib/RichTextView.cpp +++ b/uppsrc/CtrlLib/RichTextView.cpp @@ -195,7 +195,7 @@ void RichTextView::LeftDown(Point p, dword keyflags) if(!(keyflags & K_SHIFT)) anchor = pos; RefreshSel(); - SetWantFocus(); + SetFocus(); SetCapture(); } } @@ -213,7 +213,7 @@ void RichTextView::LeftDouble(Point p, dword keyflags) while(cursor < text.GetLength() && text[cursor] == ' ') cursor++; RefreshSel(); - SetWantFocus(); + SetFocus(); } } @@ -224,7 +224,7 @@ void RichTextView::LeftTriple(Point p, dword keyflags) anchor = pos - rp.posinpara; cursor = anchor + rp.paralen + 1; RefreshSel(); - SetWantFocus(); + SetFocus(); } void RichTextView::MouseMove(Point p, dword keyflags)