# "Esc" keyboard shortcut not working properly in edition mode

**URL:** <https://meta.discourse.org/t/esc-keyboard-shortcut-not-working-properly-in-edition-mode/136599>\
**Category:** Bug\
**Tags:** keyboard-shortcuts\
**Created:** [20 בדצמבר,‏ 2019,‏ 11:05am UTC](https://meta.discourse.org/t/esc-keyboard-shortcut-not-working-properly-in-edition-mode/136599 "2019-12-20T11:05:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jack2](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@jack2](https://meta.discourse.org/u/jack2)\
**Post date:** [20 בדצמבר,‏ 2019,‏ 11:05am UTC](https://meta.discourse.org/t/esc-keyboard-shortcut-not-working-properly-in-edition-mode/136599/1 "2019-12-20T11:05:40Z")

</div>

How to reproduce:

1. Go to one of your post and click Edit to open the composer. Don’t type anything.
2. Press the Esc key =\> as expected, the composer disappears completely (it isn’t minimized, because the post hasn’t been modified).
3. Refresh the browser page =\> the composer comes back.

In step 2, if you click the Cancel button instead of pressing the Esc key, the behavior is correct, i.e. the composer doesn’t come back after browser refresh.

---

_[View the full topic](https://meta.discourse.org/t/esc-keyboard-shortcut-not-working-properly-in-edition-mode/136599)._
