mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Preselect first action when opening option button popup by shortcut
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user