summaryrefslogtreecommitdiff
path: root/src/gui/widgets/inttextfield.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/inttextfield.cpp')
-rw-r--r--src/gui/widgets/inttextfield.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/widgets/inttextfield.cpp b/src/gui/widgets/inttextfield.cpp
index 160cfe5de..fcec92a39 100644
--- a/src/gui/widgets/inttextfield.cpp
+++ b/src/gui/widgets/inttextfield.cpp
@@ -28,6 +28,7 @@
#include "events/keyevent.h"
+#include "input/inputaction.h"
#include "input/keydata.h"
#include "utils/stringutils.h"
@@ -57,7 +58,8 @@ void IntTextField::keyPressed(KeyEvent &event)
{
const int action = event.getActionId();
- if (action == Input::KEY_GUI_DELETE || action == Input::KEY_GUI_BACKSPACE)
+ if (action == InputAction::GUI_DELETE
+ || action == InputAction::GUI_BACKSPACE)
{
setText(std::string());
if (mSendAlwaysEvents)