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

UX issue in global search field #28469

Closed
lorien opened this issue Sep 28, 2024 · 3 comments
Closed

UX issue in global search field #28469

lorien opened this issue Sep 28, 2024 · 3 comments
Labels

Comments

@lorien
Copy link

lorien commented Sep 28, 2024

Steps to reproduce

  1. Click global search input
  2. Enter any non-empty query
  3. Press backspace button as many times as required to delete whole query (make input field empty) and then press back-space ONE MORE TIME

Expected behaviour

I expect focus keep inside the field so I can enter another query

Actual behaviour

The input field has focus while I am deleting chars of the query.
The input field still has focus when I delete last character and get empty query.
The input field loose focus when I press back-space ONE MORE TIME after I removed last character.

That does not make sense. Nobody (or at least me) does not count presses on back-space button. People (or at least me) just keep pressing the back-space button until the field gets cleared. In practice it means that the field receives a few BackSpaceButtonIsPressed events after whole content is removed.

Operating system

Debian

Version of Telegram Desktop

5.5.5

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

@lorien lorien added the bug label Sep 28, 2024
@john-preston
Copy link
Member

You're right, that's unusual. But this is intended, it's supposed to work that way, sorry.

Good news, while the focus indeed leaves the field, you still can type the new query right away, it will work, even without the focus in the field - once you start typing the query focus will return back in.

@lorien
Copy link
Author

lorien commented Sep 30, 2024

@john-preston No. When focus leaves the global search field it moves to another place. If I start typing, my key presses are forwarded to another region, for example message input field in the group which is open at the moment.

@john-preston
Copy link
Member

@lorien Hmm, maybe the auto unfocus should work in case nothing else is open. I'll need to check, perhaps it can be improved.

@Aokromes Aokromes removed the wontfix label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants