Make ShouldHaveFocusAppearance() consistent with :focus-visible.
Also simplify the model, and fix an issue where :focus-visible didn't match if `preventDefault()` was called on the keyboard event. Now the model is that any trusted keyboard event will set had_keyboard_event to true, and any focus from mouse will re-set it to false. Bug: 1010549 Change-Id: Ifcb9bfbef746b91d99fc8ef42a8ef0e223fca2c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863061Reviewed-by:Kent Tamura <tkent@chromium.org> Commit-Queue: Alice Boxhall <aboxhall@chromium.org> Cr-Commit-Position: refs/heads/master@{#707709}
Showing
Please register or sign in to comment