Skip to content

Commit 53582d9

Browse files
committed
Update ComboBox key navigation to only respond to up and down keys
1 parent 3b64c55 commit 53582d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

JuceLibraryCode/modules/juce_gui_basics/widgets/juce_ComboBox.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,13 +454,13 @@ void ComboBox::lookAndFeelChanged()
454454
//==============================================================================
455455
bool ComboBox::keyPressed (const KeyPress& key)
456456
{
457-
if (key == KeyPress::upKey || key == KeyPress::leftKey)
457+
if (key == KeyPress::upKey)
458458
{
459459
nudgeSelectedItem (-1);
460460
return true;
461461
}
462462

463-
if (key == KeyPress::downKey || key == KeyPress::rightKey)
463+
if (key == KeyPress::downKey)
464464
{
465465
nudgeSelectedItem (1);
466466
return true;

0 commit comments

Comments
 (0)