Snav: Assert focus at keyup, not at setTimout(0, ...)
"... the default action MUST be to shift the document focus". https://www.w3.org/TR/uievents/#event-type-keydown As focus movement happens during keydown, once we got the succeeding keyup-event, it's safe to assert activeElement. Why not do the asserts at 'focusin' instead? After 'keyup', we're safe to send another trigger-key. (Most spatnav tests verify several focus movements). Bug: 803086 Change-Id: I6927d61a9d323f5bd3fe8a6022aef2f6eca50521 Reviewed-on: https://chromium-review.googlesource.com/1188476Reviewed-by:Fredrik Söderquist <fs@opera.com> Commit-Queue: Hugo Holgersson <hugoh@vewd.com> Cr-Commit-Position: refs/heads/master@{#585855}
Showing
Please register or sign in to comment