File tree 1 file changed +12
-18
lines changed
src/java.desktop/macosx/classes/sun/lwawt/macosx
1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -164,24 +164,18 @@ public void propertyChange(PropertyChangeEvent e) {
164
164
treeNodeCollapsed (ptr );
165
165
}
166
166
167
- // At least for now don't handle combo box menu state changes.
168
- // This may change when later fixing issues which currently
169
- // exist for combo boxes, but for now the following is only
170
- // for JPopupMenus, not for combobox menus.
171
- if (parentRole != AccessibleRole .COMBO_BOX ) {
172
- if (thisRole == AccessibleRole .POPUP_MENU ) {
173
- if ( newValue != null &&
174
- ((AccessibleState )newValue ) == AccessibleState .VISIBLE ) {
175
- menuOpened (ptr );
176
- } else if ( oldValue != null &&
177
- ((AccessibleState )oldValue ) == AccessibleState .VISIBLE ) {
178
- menuClosed (ptr );
179
- }
180
- } else if (thisRole == AccessibleRole .MENU_ITEM ) {
181
- if ( newValue != null &&
182
- ((AccessibleState )newValue ) == AccessibleState .FOCUSED ) {
183
- menuItemSelected (ptr );
184
- }
167
+ if (thisRole == AccessibleRole .POPUP_MENU ) {
168
+ if ( newValue != null &&
169
+ ((AccessibleState )newValue ) == AccessibleState .VISIBLE ) {
170
+ menuOpened (ptr );
171
+ } else if ( oldValue != null &&
172
+ ((AccessibleState )oldValue ) == AccessibleState .VISIBLE ) {
173
+ menuClosed (ptr );
174
+ }
175
+ } else if (thisRole == AccessibleRole .MENU_ITEM ) {
176
+ if ( newValue != null &&
177
+ ((AccessibleState )newValue ) == AccessibleState .FOCUSED ) {
178
+ menuItemSelected (ptr );
185
179
}
186
180
}
187
181
You can’t perform that action at this time.
0 commit comments