changeset 52277:8e408bf62635

8061359: [macosx] Checkbox toggles on Space press but does not spoken by Voice Over Reviewed-by: mhalder, serb
author sveerabhadra
date Mon, 15 Oct 2018 10:29:06 +0530
parents c7afaa79cbb3
children 30d5f10ace94
files src/java.desktop/macosx/classes/sun/lwawt/macosx/CAccessible.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
+                    }
                 }
             }
         }