fixes 92124: RightArrow then Backspace causes Caret to go to previous line. r=jfrancis; sr=kin; a=roc+moz; submitted by Shotaro Kamio, skamio@netscape.net
git-svn-id: svn://10.0.0.236/trunk@116324 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5399f035da
commit
a06d58321d
@ -953,8 +953,14 @@ nsTextEditRules::DidDeleteSelection(nsISelection *aSelection,
|
||||
if (!strLength)
|
||||
{
|
||||
res = mEditor->DeleteNode(startNode);
|
||||
if (NS_FAILED(res)) return res;
|
||||
}
|
||||
}
|
||||
// We prevent the caret from sticking on the left of prior BR
|
||||
// (i.e. the end of previous line) after this deletion. Bug 92124
|
||||
nsCOMPtr<nsISelectionPrivate> selPriv = do_QueryInterface(aSelection);
|
||||
if (selPriv) res = selPriv->SetInterlinePosition(PR_TRUE);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user