tweb
tweb copied to clipboard
[BUG] Pressing "Esc" doesn't close chat if window has particular width
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
- This will cause this chat to open. Also URL will change from https://web.telegram.org/k/ to something else, for example, to https://web.telegram.org/k/#@foo or to https://web.telegram.org/k/#123456789
- Note that the window is big enough, so both list of chats and chat itself will be visible
- Now press "Esc"
- The chat will remain opened (!). Both chat and list of chats will remain visible. But URL will change back to https://web.telegram.org/k/
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:
- Pressing "Esc" doesn't close the chat
- Pressing "Esc" brings us to strange situation: chat is opened, but ID or nickname is not shown in URL. I think this should never happen
Desktop:
- OS: Debian Linux Stretch, my screen resolution is 1920 * 1080. I use X server. My system is not configured as HiDPI system
- Browser: Chromium 121.0.6167.160