Programming Phoenix Liveview B2.0 - P103

P103:

"The modal component markup adds a few LiveView bindings to listen for close events: phx-capture-click=“close”, phx-window-keydown=“close”, and phx-key=“escape”.

It’s not clear how phx-key=“escape” results in a close event. Is this something automagically done by live_component?