summaryrefslogtreecommitdiff
path: root/plugingui/combobox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/combobox.cc')
-rw-r--r--plugingui/combobox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/combobox.cc b/plugingui/combobox.cc
index c627b05..cae854a 100644
--- a/plugingui/combobox.cc
+++ b/plugingui/combobox.cc
@@ -166,7 +166,7 @@ void ComboBox::scrollEvent(ScrollEvent *e)
void ComboBox::keyEvent(KeyEvent *e)
{
- if(e->direction != -1)
+ if(e->direction != KeyEvent::Up)
{
return;
}
@@ -226,7 +226,7 @@ void ComboBox::keyEvent(KeyEvent *e)
void ComboBox::buttonEvent(ButtonEvent *e)
{
- if(e->direction != 1)
+ if(e->direction != ButtonEvent::Down)
{
return;
}