Bug 276864

Summary: Escape fails to close popover or dialog if focus is on a search input
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, karlcow, micah, ntim, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Luke Warlow
Reported 2024-07-21 10:48:02 PDT
As can be seen both here https://jsfiddle.net/7wsghcn0/ (dialog) and https://jsfiddle.net/L4traqh8/ (popover), if you press open and then try to close the top-layer element using the escape key, it fails because focus is inside of a search input. Safari: Fails to close Firefox: Closes Chrome: Closes
Attachments
Micah Cambre
Comment 1 2024-07-25 20:49:32 PDT
Adding to Luke's bug here, my testing shows that this is not limited to search input, but any input type as well as textarea. It might be a general form field focus issue inside of a popover.
Radar WebKit Bug Importer
Comment 2 2024-07-28 10:48:17 PDT
Tim Nguyen (:ntim)
Comment 3 2024-08-20 11:38:41 PDT
Note You need to log in before you can comment on or make changes to this bug.