Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will it be merged into
develop
?3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t know. I am currently in a private chat with @toaster who is not convinced that this is a good fix.
3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for my case.
3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My objections are not about if it works or not. The problem is that the ability to focus an object that is not part of the tree opens pitfalls. If you have to add a comment about being careful to some code, it is most probably better to not add this code at all.
3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S.: Especially if the code and its comment are hidden in some private type whereas the public interface does not include this warning.
3b7e52a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't mean to imply that @toaster thought it did not work, sorry.
Whether or not this should be supported is an interesting question. However what is more important is:
"This used to work, did we mean to break it in 2.0.0"
to which the answer is clearly, No - this was an accident.
So do we want to proagate the break, and put it in the notes for all breaking changes in 2.0 upgrade notes, or should we fix it beacause it has been supported in the past.
Without this feature a develop that wishes an element to be focused will have to get a callback from the
main()
of their app to say that it has set the window, so the focusing can happen. This feels like it is bleeding different concerns of the app.