Bug 615220 - Don't fire focus event for current focused accessible when document gets focus, r=davidb, a=davidb

This commit is contained in:
Alexander Surkov 2010-12-02 16:47:20 +08:00
Родитель 229baaec0f
Коммит 6b2062b1d2
1 изменённых файлов: 0 добавлений и 7 удалений

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

@ -621,13 +621,6 @@ nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
else
#endif
if (eventType.EqualsLiteral("focus")) {
if (targetNode == mDocument && mDocument != gLastFocusedNode) {
// Got focus event for the window, we will make sure that an accessible
// focus event for initial focus is fired. We do this on a short timer
// because the initial focus may not have been set yet.
NS_DISPATCH_RUNNABLEMETHOD(FireCurrentFocusEvent, this)
}
// Keep a reference to the target node. We might want to change
// it to the individual radio button or selected item, and send
// the focus event to that.