diff --git a/modules/juce_gui_basics/widgets/juce_ListBox.cpp b/modules/juce_gui_basics/widgets/juce_ListBox.cpp index 17d565b9c6..6da89672e4 100644 --- a/modules/juce_gui_basics/widgets/juce_ListBox.cpp +++ b/modules/juce_gui_basics/widgets/juce_ListBox.cpp @@ -32,12 +32,12 @@ static AccessibilityActions getListRowAccessibilityActions (RowComponentType& ro auto onFocus = [&rowComponent] { rowComponent.owner.scrollToEnsureRowIsOnscreen (rowComponent.row); + rowComponent.owner.selectRow (rowComponent.row); }; auto onPress = [&rowComponent, onFocus] { onFocus(); - rowComponent.owner.selectRow (rowComponent.row); rowComponent.owner.keyPressed (KeyPress (KeyPress::returnKey)); };