mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
fixed bug 14039
bad copy-and-paste of some event propogation code. the gfx text control event listeners exist just to propogate the event from the embedded shell to the content, and should not pass the event back to the frame itself, except for keyPress (for default action).
This commit is contained in:
parent
418d0fb8e1
commit
614cec5d10
@ -1907,10 +1907,6 @@ nsEnderKeyListener::KeyDown(nsIDOMEvent* aKeyEvent)
|
||||
|
||||
// Have the content handle the event.
|
||||
mContent->HandleDOMEvent(*mContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
|
||||
// Now have the frame handle the event
|
||||
mFrame->HandleEvent(*mContext, &event, status);
|
||||
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
@ -1943,9 +1939,6 @@ nsEnderKeyListener::KeyUp(nsIDOMEvent* aKeyEvent)
|
||||
|
||||
// Have the content handle the event.
|
||||
mContent->HandleDOMEvent(*mContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
|
||||
// Now have the frame handle the event
|
||||
mFrame->HandleEvent(*mContext, &event, status);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user