# Programming Phoenix Liveview B2.0 - P103

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p103/8187>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, suggestion\
**Created:** [25 March 2021 15:15 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p103/8187 "2021-03-25T15:15:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asibbald](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asibbald](https://forum.devtalk.com/u/asibbald)\
**Post date:** [25 March 2021 15:15 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b2-0-p103/8187/1 "2021-03-25T15:15:52Z")

</div>

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?
