mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 22:03:07 -06:00
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:
parent
ca4d6935c7
commit
062e5ea34d
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue