mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Bug 831421 - Arrow keys are broken in test-ipc.xul, r=neil
This commit is contained in:
parent
497f06f2c6
commit
a2de630b4d
@ -31,6 +31,7 @@
|
||||
#include "nsGUIEvent.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/dom/Element.h"
|
||||
#include "nsEventStateManager.h"
|
||||
|
||||
using namespace mozilla;
|
||||
|
||||
@ -378,6 +379,14 @@ nsXBLWindowKeyHandler::HandleEvent(nsIDOMEvent* aEvent)
|
||||
nsCOMPtr<nsIAtom> eventTypeAtom = do_GetAtom(eventType);
|
||||
NS_ENSURE_TRUE(eventTypeAtom, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
if (!mWeakPtrForElement) {
|
||||
nsCOMPtr<mozilla::dom::Element> originalTarget =
|
||||
do_QueryInterface(aEvent->GetInternalNSEvent()->originalTarget);
|
||||
if (nsEventStateManager::IsRemoteTarget(originalTarget)) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
return WalkHandlers(keyEvent, eventTypeAtom);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user