element-hq / element-hq/element-web

Press `ESC` to close chat into the sidebar

Open
#23,369 3 comments 4 reactions 0 assignees View on GitHub
O-Uncommon S-Minor T-Enhancement X-Needs-Product
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Your use case

#### What would you like to do?

When I press `ESC`, I'd like for the chat window to empty, and the room in the sidebar to become deselected.

#### Why would you like to do it?

This way, my chat window would be empty, and various things that would rely on a chat window being actively viewed (loading content, having a particular image on screen, and/or read markers being moved by you) would disable.

### Have you considered any alternatives?

_No response_

### Additional context

Telegram desktop (tdesktop) has this functionality, and I've come to rely on it to close out or "blank" the main window, be it for stressful conversations, to lessen the stimulation on screen, or simply to be sure I do not move my read marker forward in the chat window the next time I open telegram.

Example:

![image](https://user-images.githubusercontent.com/22740616/192826026-3d642177-844c-4fe8-a095-7fbc82439893.png)

Edit: additional context
> Esc does two other things at the moment: dismisses "reply" mode and clears read receipts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.