зеркало из https://github.com/mozilla/gecko-dev.git
Bug 503428 Caret-moved events missing from Thunderbird Subject field r=surkov
This commit is contained in:
Родитель
6af0b03ee6
Коммит
ca551129e1
|
@ -76,6 +76,7 @@
|
|||
#include "nsRootAccessible.h"
|
||||
#include "nsIDOMNSEventTarget.h"
|
||||
#include "nsIDOMDocumentEvent.h"
|
||||
#include "nsIPrivateDOMEvent.h"
|
||||
#include "nsFocusManager.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
|
||||
|
@ -483,6 +484,9 @@ nsRootAccessible::FireCurrentFocusEvent()
|
|||
}
|
||||
|
||||
// Otherwise simulate the focus event for currently focused node.
|
||||
nsCOMPtr<nsIPrivateDOMEvent> privateEvent(do_QueryInterface(event));
|
||||
nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(focusedNode));
|
||||
privateEvent->SetTarget(target);
|
||||
HandleEventWithTarget(event, targetNode);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче