8061359: [macosx] Checkbox toggles on Space press but does not spoken by Voice Over
Reviewed-by: mhalder, serb
--- a/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessible.java Sun Oct 14 18:05:06 2018 +0530
+++ b/src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessible.java Mon Oct 15 10:29:06 2018 +0530
@@ -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.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 @@
}
}
-
private class AXChangeNotifier implements PropertyChangeListener {
@Override
@@ -157,6 +157,11 @@
}
}
}
+
+ // Do send check box state changes to native side
+ if (thisRole == AccessibleRole.CHECK_BOX) {
+ valueChanged(ptr);
+ }
}
}
}