Describe the bug
Pressing "Esc" doesn't close chat if window has particular width
To Reproduce
Steps to reproduce the behavior:
I have desktop. With Google Chromium on Desktop
I'm nearly sure that this bug can be reproduced on any desktop OS (Windows, Linux, macOS). But my OS is Linux
Computer should not be configured as HiDPI system, i. e. screen scaling should not be enabled. Also, zoom settings for https://web.telegram.org/k/ should be set to 100%. All these ensures that hardware pixels correspond to CSS pixels
Open browser window, resize it so that height becomes 500 pixels and width becomes 1000 pixels
Go to https://web.telegram.org/k/ . (I assume here that you are already authorized. Also I assume that you already have some chats in your account.)
Choose some chat from list of chats, located in the left. Click on chosen chat using mouse
Describe the bug Pressing "Esc" doesn't close chat if window has particular width
To Reproduce Steps to reproduce the behavior:
Expected behavior After pressing "Esc" the chat should close and URL should change back to https://web.telegram.org/k/
Current behavior is wrong for two reasons:
Desktop: