# Escape key when writing on the chat: unfocus the input instead of closing the chat?

**URL:** <https://meta.discourse.org/t/escape-key-when-writing-on-the-chat-unfocus-the-input-instead-of-closing-the-chat/266312>\
**Category:** Feature\
**Tags:** chat, completed\
**Created:** [May 26, 2023, 11:48am UTC](https://meta.discourse.org/t/escape-key-when-writing-on-the-chat-unfocus-the-input-instead-of-closing-the-chat/266312 "2023-05-26T11:48:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [May 26, 2023, 11:48am UTC](https://meta.discourse.org/t/escape-key-when-writing-on-the-chat-unfocus-the-input-instead-of-closing-the-chat/266312/1 "2023-05-26T11:48:16Z")

</div>

I was writing or editing a message in the chat.

I wanted to do something else, and I pressed escape without even thinking, expecting it would unfocus the input.  
Instead, it closed the chat, and I didn’t even remember in which personal chat or channel I was writing or editing my message.

I propose that pressing esc would unfocus the input, and would close the chat only if the input isn’t focused or empty.

* * *

If we open the post composer, if we press esc while the content is empty, it **closes** the composer.  
If we press esc, it **minimizes** the composer, leaving it still noticeable and available to continue writing.

So maybe having some sort of similiar behavior on the chat could be nice?

---

_[View the full topic](https://meta.discourse.org/t/escape-key-when-writing-on-the-chat-unfocus-the-input-instead-of-closing-the-chat/266312)._
