зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
466cdcd0f9
Коммит
cc27c616f7
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче