From 062e5ea34d10fa85c666e3811dc1ebfe74eeff69 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 6 Sep 2014 15:43:12 +0000 Subject: [PATCH] CtrlLib: LineEdit Alt+MouseMove ->rect selection #846 git-svn-id: svn://ultimatepp.org/upp/trunk@7642 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/LineEdit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uppsrc/CtrlLib/LineEdit.cpp b/uppsrc/CtrlLib/LineEdit.cpp index cfb13b19c..e753a72f2 100644 --- a/uppsrc/CtrlLib/LineEdit.cpp +++ b/uppsrc/CtrlLib/LineEdit.cpp @@ -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; + } } }