summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/dropdown.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index b8f5b895..c45dc226 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -212,12 +212,14 @@ void DropDown::keyPressed(gcn::KeyEvent& keyEvent)
}
else if (key.getValue() == Key::UP)
{
- setSelected(getSelected() - 1);
+ if (!mDroppedDown)
+ setSelected(getSelected() - 1);
keyEvent.consume();
}
else if (key.getValue() == Key::DOWN)
{
- setSelected(getSelected() + 1);
+ if (!mDroppedDown)
+ setSelected(getSelected() + 1);
keyEvent.consume();
}
else if (key.getValue() == Key::HOME)