summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 65a5b10c9..71e546faa 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -26,6 +26,7 @@
#include "events/keyevent.h"
+#include "input/inputaction.h"
#include "input/keydata.h"
#include "gui/gui.h"
@@ -317,24 +318,24 @@ void DropDown::keyPressed(KeyEvent& event)
const int actionId = event.getActionId();
switch (actionId)
{
- case Input::KEY_GUI_SELECT:
- case Input::KEY_GUI_SELECT2:
+ case InputAction::GUI_SELECT:
+ case InputAction::GUI_SELECT2:
dropDown();
break;
- case Input::KEY_GUI_UP:
+ case InputAction::GUI_UP:
setSelected(getSelected() - 1);
break;
- case Input::KEY_GUI_DOWN:
+ case InputAction::GUI_DOWN:
setSelected(getSelected() + 1);
break;
- case Input::KEY_GUI_HOME:
+ case InputAction::GUI_HOME:
setSelected(0);
break;
- case Input::KEY_GUI_END:
+ case InputAction::GUI_END:
if (mPopup->getListModel())
{
setSelected(mPopup->getListModel()->