Other |
---|
tbdUnresolved |
Relates :
|
|
Relates :
|
This scenario was identified while fixing JDK-8244075. An accelerator of MenuItem should get removed when a Control is removed from Scene and it's ContextMenu is set to null. Currently the accelerator is not removed and it gets fired if that Control is added back to Scene. This issue is fixed for Button, but occurs for other Controls. A test is already included in AcceleratorParameterizedTest Test name: testAcceleratorShouldNotGetFiredWhenControlsIsRemovedFromSceneThenContextMenuIsSetToNullAndControlIsAddedBackToScene(). The test passes for Button but fails for other controls (Tab, TableColumn, TreeTableColumn).