зеркало из https://github.com/mozilla/pjs.git
Bug 394547. Giving focus to a tree in an autocomplete causes absence of future caret-moved events for the entry. r=evan.yan, a=dsicore
This commit is contained in:
Родитель
9d4bd1299a
Коммит
444546f70f
|
@ -442,6 +442,12 @@ PRBool nsRootAccessible::FireAccessibleFocusEvent(nsIAccessible *aAccessible,
|
|||
nsCOMPtr<nsIDOMEventTarget> domEventTarget;
|
||||
nsevent->GetOriginalTarget(getter_AddRefs(domEventTarget));
|
||||
nsCOMPtr<nsIDOMNode> realFocusedNode(do_QueryInterface(domEventTarget));
|
||||
if (!realFocusedNode) {
|
||||
// When FireCurrentFocusEvent() synthesizes a focus event,
|
||||
// the orignal target does not exist, so use the passed-in node
|
||||
// which is the relevant focused node
|
||||
realFocusedNode = aNode;
|
||||
}
|
||||
if (realFocusedNode) {
|
||||
mCaretAccessible->SetControlSelectionListener(realFocusedNode);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче