зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
418d0fb8e1
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче