diff --git a/modules/juce_gui_basics/widgets/juce_ListBox.cpp b/modules/juce_gui_basics/widgets/juce_ListBox.cpp index 75c4545ddf..7d7a9833f6 100644 --- a/modules/juce_gui_basics/widgets/juce_ListBox.cpp +++ b/modules/juce_gui_basics/widgets/juce_ListBox.cpp @@ -723,7 +723,7 @@ bool ListBox::keyPressed (const KeyPress& key) if (multiple) selectRangeOfRows (lastRowSelected, lastRowSelected + 1); else - selectRow (jmin (totalItems - 1, jmax (0, lastRowSelected) + 1)); + selectRow (jmin (totalItems - 1, jmax (0, lastRowSelected + 1))); } else if (key.isKeyCode (KeyPress::pageUpKey)) {