зеркало из https://github.com/mozilla/gecko-dev.git
1b0e6d02fe
`PresShell::EventHandler::HandleEventInternal()` may handle `Escape` key before dispatching it in some cases. This requires too many lines for somebody who investigate the method for the other events. Therefore, this patch moves it into the new method. Additionally, this patch creates `WidgetKeyboardEvent::CanTreatAsUserInput()` and `WidgetKeyboardEvent::ShouldInteractionTimeRecorded()` because we should manage similar checks in one place (we already have `WidgetKeyboardEvent::CanUserGestureActivateTarget()`). Finally, their conditions are not enough for what the comment wants to do there since they do not check some modifier keys. Therefore, this patch makes them check all possible modifier keys too. Differential Revision: https://phabricator.services.mozilla.com/D21340 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |