зеркало из https://github.com/mozilla/pjs.git
fix for 53760, xbl double firing key events. r=hyatt, a=hyatt
This commit is contained in:
Родитель
da9956b3a0
Коммит
80300c590e
|
@ -251,8 +251,10 @@ nsXBLWindowKeyHandler::WalkHandlersInternal(nsIDOMKeyEvent* aKeyEvent, nsIAtom*
|
||||||
if (mElement)
|
if (mElement)
|
||||||
rec = do_QueryInterface(elt);
|
rec = do_QueryInterface(elt);
|
||||||
rv = currHandler->ExecuteHandler(rec, aKeyEvent);
|
rv = currHandler->ExecuteHandler(rec, aKeyEvent);
|
||||||
if (NS_SUCCEEDED(rv))
|
if (NS_SUCCEEDED(rv)) {
|
||||||
|
aKeyEvent->PreventDefault();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,8 +251,10 @@ nsXBLWindowKeyHandler::WalkHandlersInternal(nsIDOMKeyEvent* aKeyEvent, nsIAtom*
|
||||||
if (mElement)
|
if (mElement)
|
||||||
rec = do_QueryInterface(elt);
|
rec = do_QueryInterface(elt);
|
||||||
rv = currHandler->ExecuteHandler(rec, aKeyEvent);
|
rv = currHandler->ExecuteHandler(rec, aKeyEvent);
|
||||||
if (NS_SUCCEEDED(rv))
|
if (NS_SUCCEEDED(rv)) {
|
||||||
|
aKeyEvent->PreventDefault();
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче