Skip to content

Commit e642639

Browse files
committed
Bug 1986710 [wpt PR 54668] - Make ESC lose interest in all elements that have interest, a=testonly
Automatic update from web-platform-tests Make ESC lose interest in all elements that have interest This CL implements the behavior described in the spec PR: whatwg/html#11006 That is: the ESC key is handled very much like popovers - the focus doesn't need to be on the invoker for ESC to work. Also, hitting ESC loses interest in all elements that currently have interest, in reverse order. A test is added to confirm this. Note: I purposely did not use close watcher here, since I don't believe the close watcher stack should get involved. E.g. the android Back button should just navigate back, and not first lose interest in things. Closing a popover or modal dialog is different than a tooltip being open on a page. Bug: 326681249 Change-Id: I33cc2742a677f330d90b83c29b18b22bf49b716e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6900679 Reviewed-by: Joey Arhar <jarharchromium.org> Auto-Submit: Mason Freed <masonfchromium.org> Commit-Queue: Mason Freed <masonfchromium.org> Cr-Commit-Position: refs/heads/main{#1510373} -- wpt-commits: d2c3a6825856a39ca05b811576676c4488ccf3e1 wpt-pr: 54668 UltraBlame original commit: f1521afeb3e135fd1851d48adc6d81832028011b
1 parent 9369a11 commit e642639

File tree

1 file changed

+667
-48
lines changed

1 file changed

+667
-48
lines changed

0 commit comments

Comments
 (0)