Preselect first action when opening option button popup by shortcut

This commit is contained in:
Konstantin Kolosovsky
2018-01-30 01:13:43 +03:00
parent 3f0ccd24db
commit f64138d461
@@ -144,7 +144,7 @@ public class JBOptionButton extends JButton implements Weighted {
Action selection = actionToSelect;
if (selection == null && myOptions.length > 0 && ensureSelection) {
selection = getAction();
selection = myOptions[0];
}
if (selection == null) return;