CtrlLib: LineEdit Alt+MouseMove ->rect selection #846

git-svn-id: svn://ultimatepp.org/upp/trunk@7642 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-09-06 15:43:12 +00:00
parent ca4d6935c7
commit 062e5ea34d

View file

@ -629,15 +629,20 @@ void LineEdit::LeftTriple(Point, dword)
void LineEdit::MouseMove(Point p, dword flags) {
if((flags & K_MOUSELEFT) && HasFocus() && HasCapture()) {
int c = GetMousePos(p);
dorectsel = flags & K_ALT;
PlaceCaret(c, mpos != c || HasCapture());
dorectsel = false;
}
}
void LineEdit::LeftRepeat(Point p, dword flags) {
if(HasCapture()) {
int c = GetMousePos(p);
if(mpos != c)
if(mpos != c) {
dorectsel = flags & K_ALT;
PlaceCaret(c, true);
dorectsel = false;
}
}
}