Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Pressing "Esc" doesn't close chat if window has particular width #342

Open
safinaskar opened this issue Aug 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@safinaskar
Copy link

safinaskar commented Aug 8, 2024

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
@safinaskar safinaskar added the bug Something isn't working label Aug 8, 2024
@safinaskar
Copy link
Author

Also: this bug is not present in Telegram Web A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant