bug 54306 - fix extending the current selection using shift-click. sr/a=hyatt.
git-svn-id: svn://10.0.0.236/trunk@80400 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d1824b1e6f
commit
f8b1f2158d
@ -303,9 +303,10 @@ nsXULTreeElement::SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement
|
||||
nsCOMPtr<nsIDOMXULElement> startItem;
|
||||
if (aStartItem == nsnull) {
|
||||
// Continue the ranged selection based off the first item selected
|
||||
if (!mSelectionStart)
|
||||
mSelectionStart = mCurrentItem;
|
||||
startItem = mSelectionStart;
|
||||
if (mSelectionStart)
|
||||
startItem = mSelectionStart;
|
||||
else
|
||||
startItem = mCurrentItem;
|
||||
}
|
||||
else startItem = aStartItem;
|
||||
|
||||
@ -317,6 +318,8 @@ nsXULTreeElement::SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement
|
||||
SetSuppressOnSelect(PR_TRUE);
|
||||
ClearItemSelection();
|
||||
|
||||
mSelectionStart = startItem;
|
||||
|
||||
PRInt32 startIndex = 0,
|
||||
endIndex = 0;
|
||||
|
||||
|
||||
@ -303,9 +303,10 @@ nsXULTreeElement::SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement
|
||||
nsCOMPtr<nsIDOMXULElement> startItem;
|
||||
if (aStartItem == nsnull) {
|
||||
// Continue the ranged selection based off the first item selected
|
||||
if (!mSelectionStart)
|
||||
mSelectionStart = mCurrentItem;
|
||||
startItem = mSelectionStart;
|
||||
if (mSelectionStart)
|
||||
startItem = mSelectionStart;
|
||||
else
|
||||
startItem = mCurrentItem;
|
||||
}
|
||||
else startItem = aStartItem;
|
||||
|
||||
@ -317,6 +318,8 @@ nsXULTreeElement::SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement
|
||||
SetSuppressOnSelect(PR_TRUE);
|
||||
ClearItemSelection();
|
||||
|
||||
mSelectionStart = startItem;
|
||||
|
||||
PRInt32 startIndex = 0,
|
||||
endIndex = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user