54449: Re-adding workaround for bug in delete-to-end, which was accidentally overwritten in XIF landing. r=jfrancis, sr=kin

This commit is contained in:
akkana%netscape.com 2000-10-14 00:03:05 +00:00
Родитель a172a759bf
Коммит e4c8c0286a
2 изменённых файлов: 12 добавлений и 4 удалений

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

@ -2340,7 +2340,11 @@ NS_IMETHODIMP nsHTMLEditor::DeleteSelection(nsIEditor::EDirection aAction)
break;
case eToEndOfLine:
result = selCont->IntraLineMove(PR_TRUE, PR_TRUE);
aAction = eNext;
// Bugs 54449/54452: the selection jumps to the wrong place
// when deleting past a <br> and action is eNext or ePrev,
// so setting action to eNone makes delete-to-end marginally usable.
// aAction should really be set to eNext
aAction = eNone;
break;
default: // avoid several compiler warnings
result = NS_OK;

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

@ -2340,7 +2340,11 @@ NS_IMETHODIMP nsHTMLEditor::DeleteSelection(nsIEditor::EDirection aAction)
break;
case eToEndOfLine:
result = selCont->IntraLineMove(PR_TRUE, PR_TRUE);
aAction = eNext;
// Bugs 54449/54452: the selection jumps to the wrong place
// when deleting past a <br> and action is eNext or ePrev,
// so setting action to eNone makes delete-to-end marginally usable.
// aAction should really be set to eNext
aAction = eNone;
break;
default: // avoid several compiler warnings
result = NS_OK;