summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-31 22:42:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-31 22:42:51 +0300
commit69ed7e5ae640b0a2cd95d66b42b4c369fe522433 (patch)
tree3a93fbacce6140387a7b654fe6dbfe3798db64b5 /src/gui/widgets/textfield.cpp
parenta1b0ccfbb80cf2e0dc80a52971a0f50261b8b7d6 (diff)
downloadplus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.gz
plus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.bz2
plus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.tar.xz
plus-69ed7e5ae640b0a2cd95d66b42b4c369fe522433.zip
Fix compilation with SDL2.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 36315af34..bcbf20e1c 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -79,6 +79,10 @@
#include "gui/popups/popupmenu.h"
+#ifdef USE_SDL2
+#include "enums/input/keyvalue.h"
+#endif
+
#include "resources/image.h"
#include "resources/imagerect.h"
@@ -290,7 +294,7 @@ void TextField::keyPressed(KeyEvent &event)
logger->log("TextField::keyPressed %d", val);
#ifdef USE_SDL2
- if (val == Key::TEXTINPUT)
+ if (val == KeyValue::TEXTINPUT)
{
std::string str = event.getText();
mText.insert(mCaretPosition, str);