зеркало из https://github.com/mozilla/gecko-dev.git
NPODB. Attempt to not go into xul elements
This commit is contained in:
Родитель
cbf0bc7fd2
Коммит
801049ef5e
|
@ -104,7 +104,6 @@ nsSpatialNavigation::KeyPress(nsIDOMEvent* aEvent)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
PRInt32 formControlType = -1;
|
||||
// check to see if we are in a text field.
|
||||
// based on nsTypeAheadFind.
|
||||
|
@ -119,6 +118,9 @@ nsSpatialNavigation::KeyPress(nsIDOMEvent* aEvent)
|
|||
|
||||
nsCOMPtr<nsIContent> targetContent = do_QueryInterface(domEventTarget);
|
||||
|
||||
if (targetContent->IsContentOfType(nsIContent::eXUL))
|
||||
return NS_OK;
|
||||
|
||||
if (targetContent->IsContentOfType(nsIContent::eHTML_FORM_CONTROL))
|
||||
{
|
||||
nsCOMPtr<nsIFormControl> formControl(do_QueryInterface(targetContent));
|
||||
|
|
Загрузка…
Ссылка в новой задаче