[jfx18] RFR: 8205915: [macOS] Accelerator assigned to button in dialog fires menuItem in owning stage [v3]
Kevin Rushforth
kcr at openjdk.java.net
Wed Jan 19 16:49:36 UTC 2022
On Wed, 19 Jan 2022 16:38:58 GMT, Martin Fox <duke at openjdk.java.net> wrote:
>> tests/system/src/test/java/test/robot/javafx/scene/DoubleShortcutProcessing.java line 53:
>>
>>> 51: // When a key equivalent closes a window it can be passed
>>> 52: // to the new key window and processed twice.
>>> 53: public class DoubleShortcutProcessing {
>>
>> When I launch the test with:
>>
>> sh gradlew -PUSE_ROBOT=true -PFULL_TEST=true :systemTests:test --tests=test.robot.javafx.scene.DoubleShortcutProcessing
>>
>> I get the system dialog "Accessibility Access (Events)" with the message "'java' would like to control this computer using accessibility features."
>>
>> After adding java to Security&Privacy->accessibility, the test works fine.
>>
>> Maybe this need to be added to the javadoc of the test.
>
> I wouldn't know what to write. On my system adding 'java' doesn't fix the problem, the OS insists I have to add 'Terminal'. In general it's easier to bump into this dialog and then go to System Preferences since the OS will have added the executable to the list which is convenient for a file like /usr/bin/java that's normally hidden.
This requirement is independent of this fix and applies to all robot tests. I do not think any additional documentation is needed here.
-------------
PR: https://git.openjdk.java.net/jfx/pull/715
More information about the openjfx-dev
mailing list