RFR: 8296621: Stage steals focus on scene change [v2]
Kevin Rushforth
kcr at openjdk.org
Tue Nov 15 23:06:28 UTC 2022
On Sun, 13 Nov 2022 01:02:36 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
>> Simple fix to not requestFocus() on scene change.
>>
>> The attached bug sample shows that the TextField focused on the scene remains focused when the scene comes back.
>
> Thiago Milczarek Sayao has updated the pull request incrementally with one additional commit since the last revision:
>
> Add test
This will need to be carefully tested on all platforms, since `WindowStage::requestFocus` will no longer ever be called when a Stage is first created and shown. If it isn't doing anything useful (which seems the case on Linux), then in practice, this might not matter, but that's where the testing comes in.
-------------
PR: https://git.openjdk.org/jfx/pull/940
More information about the openjfx-dev
mailing list