Skip to content

Commit

Permalink
Update ComboBox key navigation to only respond to up and down keys
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaldoshi committed Jan 23, 2025
1 parent 3b64c55 commit 53582d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,13 @@ void ComboBox::lookAndFeelChanged()
//==============================================================================
bool ComboBox::keyPressed (const KeyPress& key)
{
if (key == KeyPress::upKey || key == KeyPress::leftKey)
if (key == KeyPress::upKey)
{
nudgeSelectedItem (-1);
return true;
}

if (key == KeyPress::downKey || key == KeyPress::rightKey)
if (key == KeyPress::downKey)
{
nudgeSelectedItem (1);
return true;
Expand Down

0 comments on commit 53582d9

Please sign in to comment.