8061359: [macosx] Checkbox toggles on Space press but does not spoken by Voice Over

Reviewed-by: mhalder, serb
This commit is contained in:
Shashidhara Veerabhadraiah 2018-10-15 10:29:06 +05:30
parent a7c90c5400
commit ec5f10e6a2

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,6 +33,7 @@ import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.swing.JProgressBar;
import javax.swing.JSlider;
import javax.swing.JCheckBox;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
@ -110,7 +111,6 @@ class CAccessible extends CFRetainedResource implements Accessible {
}
}
private class AXChangeNotifier implements PropertyChangeListener {
@Override
@ -157,6 +157,11 @@ class CAccessible extends CFRetainedResource implements Accessible {
}
}
}
// Do send check box state changes to native side
if (thisRole == AccessibleRole.CHECK_BOX) {
valueChanged(ptr);
}
}
}
}