Fixed a bug in selection via keyboard (the problem described in bug

#716, comment #4)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20997 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-05-03 15:15:23 +00:00
parent ff32e5158c
commit 107ce0bba0

View File

@ -2861,10 +2861,12 @@ BTextView::HandleArrowKey(uint32 inArrowKey)
point.y -= height;
fClickOffset = OffsetAt(point);
if (shiftDown) {
if (fClickOffset >= fSelStart)
selEnd = fClickOffset;
else
selStart = fClickOffset;
if (fClickOffset != currentOffset) {
if (fClickOffset >= fSelStart)
selEnd = fClickOffset;
else
selStart = fClickOffset;
}
}
break;
}
@ -2876,10 +2878,12 @@ BTextView::HandleArrowKey(uint32 inArrowKey)
point.y += height;
fClickOffset = OffsetAt(point);
if (shiftDown) {
if (fClickOffset <= fSelEnd)
selStart = fClickOffset;
else
selEnd = fClickOffset;
if (fClickOffset != currentOffset) {
if (fClickOffset <= fSelEnd)
selStart = fClickOffset;
else
selEnd = fClickOffset;
}
}
break;
}