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
chat focus loss when room owner re-assignes sides #2817
Comments
Honestly, this is expected. Most apps would do that. |
Stealing focus is never expected and is always bad. The only reason most apps do it is because it's not actually an easy problem to solve. For this particular case it's about a text field focus, so... how do you determine whether the user is currently typing into the text field? How do you ensure that the text field remains focused? It may be inevitable that events temporarily remove the focus, so what you'd have to do is ensure it gets restored before keyboard event handling continues. I think this is a good thing to fix, eventually. |
@CelticMinstrel why not just change underlying value? Aren't these things orthogonal: UI focus and data? @Vultraz can you please give at least one well-known example of anything that would remotely alter focus on your client? Any web interface, or native, or anything. |
Yeah, it shouldn't have to, so if it can be fixed in a way that doesn't remove the focus in the first place, that's even better. |
Also happens when someone joins or leaves game. |
This fixes it, but makes it so it's not possible to use up arrow / down arrow to scroll the sides list. It also makes it so the chat box is focused when that dialog is entered.
|
I think that's pretty good. I am curious of course if we can insert some additional easy (yet maintainable) hack to detect up/down keystrokes and do the appropriate action, but even in the proposed form, I think it's worth it. I would merge. |
Fixed with #5252. |
Steps:
What you'll observe at this point: chat focus on the second client gets lost. Focus goes elsewhere right while you typed something. (Thus breaking your typing.)
The text was updated successfully, but these errors were encountered: