163235 if we are collapsing selection to the beginning of the extended selection, set the "hint" to the right as a tie breaker. the opposite is true for collapsing forwards in the document. r=jfrancis sr=fraser.

This commit is contained in:
mjudge%netscape.com 2003-04-17 21:25:03 +00:00
Родитель 998f79cc41
Коммит 0ca43371c9
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -1502,6 +1502,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
}
result = mDomSelections[index]->Collapse(weakNodeUsed,offsetused);
mDomSelections[index]->ScrollIntoView();
mHint = HINTRIGHT;
return NS_OK;
} break;
case nsIDOMKeyEvent::DOM_VK_RIGHT :
@ -1516,6 +1517,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
}
result = mDomSelections[index]->Collapse(weakNodeUsed,offsetused);
mDomSelections[index]->ScrollIntoView();
mHint = HINTLEFT;
return NS_OK;
} break;

Просмотреть файл

@ -1502,6 +1502,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
}
result = mDomSelections[index]->Collapse(weakNodeUsed,offsetused);
mDomSelections[index]->ScrollIntoView();
mHint = HINTRIGHT;
return NS_OK;
} break;
case nsIDOMKeyEvent::DOM_VK_RIGHT :
@ -1516,6 +1517,7 @@ nsSelection::MoveCaret(PRUint32 aKeycode, PRBool aContinue, nsSelectionAmount aA
}
result = mDomSelections[index]->Collapse(weakNodeUsed,offsetused);
mDomSelections[index]->ScrollIntoView();
mHint = HINTLEFT;
return NS_OK;
} break;