[SpatNav] Prevent duplicate key handling.
Some web-sites may handle the arrow keys themselves for moving focus. Unfortunately some of them do not call preventDefault. In this case, the focus moves twice. (ex. Buttons of https://expedia.com (class="tabs cf col")) This patch prevents duplicate focus moving by checking that the current fucused element matches the event target element. Change-Id: If97fd4d81f3eabf7fc015aa464b6d121f30458fd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1859425 Commit-Queue: Jeonghee Ahn <jeonghee27.ahn@lge.com> Reviewed-by:Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#706853}
Showing
Please register or sign in to comment