mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-54667 - AE: KeyboardComboSwitcher$.focusGained
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ public class KeyboardComboSwitcher {
|
||||
if (toggleStrategy) {
|
||||
final int size = comboBox.getModel().getSize();
|
||||
int next = comboBox.getSelectedIndex() + 1;
|
||||
if (next < 0 || next >= size) {
|
||||
if (size > 0 && (next < 0 || next >= size)) {
|
||||
if (!UISettings.getInstance().CYCLE_SCROLLING) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user