summaryrefslogtreecommitdiff
path: root/src/gui/windows/quitdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/quitdialog.cpp')
-rw-r--r--src/gui/windows/quitdialog.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/quitdialog.cpp b/src/gui/windows/quitdialog.cpp
index e3276fae6..c34801c8e 100644
--- a/src/gui/windows/quitdialog.cpp
+++ b/src/gui/windows/quitdialog.cpp
@@ -30,6 +30,7 @@
#include "events/keyevent.h"
+#include "input/inputaction.h"
#include "input/keydata.h"
#include "gui/viewport.h"
@@ -208,17 +209,17 @@ void QuitDialog::keyPressed(KeyEvent &event)
switch (actionId)
{
- case Input::KEY_GUI_SELECT:
- case Input::KEY_GUI_SELECT2:
+ case InputAction::GUI_SELECT:
+ case InputAction::GUI_SELECT2:
action(ActionEvent(nullptr, mOkButton->getActionEventId()));
break;
- case Input::KEY_GUI_CANCEL:
+ case InputAction::GUI_CANCEL:
action(ActionEvent(nullptr, mCancelButton->getActionEventId()));
break;
- case Input::KEY_GUI_UP:
+ case InputAction::GUI_UP:
dir = -1;
break;
- case Input::KEY_GUI_DOWN:
+ case InputAction::GUI_DOWN:
dir = 1;
break;
default: