SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.45k stars 3.18k forks source link

Cherry-pick "LibWeb: Implement dialog element's close watcher" #24621

Closed nico closed 3 months ago

nico commented 3 months ago

Dialog elements now correctly establish a close watcher when shown modally.

This means modal dialogs now correctly close with an escape key press.

(cherry picked from commit d86a6e1bec858a35935ba6839c154ba2482d33e6)

--

Cherry-picks https://github.com/LadybirdBrowser/ladybird/pull/250