I have an ImageView and I am changing it's opacity based on the 'focused' attribute. If the image view is focused, I am setting it's opacity to 0.5 else to 1.0. What happens with this code is that image view becomes non-focusable. When calling requestFocus (doing it on mouse click), image view gains focus and then it's opacity is changed to 0.5. Now changing opacity moves the focus out of the node and since it had lost focus, it's opacity changes back to 1,0.
So it appears as if the image view is not focused at all.
There are many similar focus issues across different nodes and it's been noticed across many tests by desktop as well as mobile team, when running them on desktop.
There are many bugs with the similar scenario. For ex,
RT-2715: Changing Opacity of a scaled Arc takes the focus off the node
RT-2661: Applying a shear on a key press takes focus off the node if the node is rotated
RT-1459: Swing Components fail to gain focus when they are made transaparent and reverted to opaque
RT-2328: Incorrect focus shift when toFront is called on a node
Many of the tests for compatibility are key driven to make them run on emulator (Each Key from 0-9 is assigned a particular scenario) and these behaviors impacts those tests when running those on desktop.
I would request to address this at the earliest.
To reproduce this particular case, just run the attached test and press on Image. Press some keys after that. you will notice that focus shifts to the next node when you press the mouse on the image.
So it appears as if the image view is not focused at all.
There are many similar focus issues across different nodes and it's been noticed across many tests by desktop as well as mobile team, when running them on desktop.
There are many bugs with the similar scenario. For ex,
Many of the tests for compatibility are key driven to make them run on emulator (Each Key from 0-9 is assigned a particular scenario) and these behaviors impacts those tests when running those on desktop.
I would request to address this at the earliest.
To reproduce this particular case, just run the attached test and press on Image. Press some keys after that. you will notice that focus shifts to the next node when you press the mouse on the image.