From a14a4fa368e91956a411337bf333451abd6b326a Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Thu, 25 Sep 2008 22:53:40 +0000 Subject: Changed textfield behavior cause a windows build didn't like it. --- src/gui/textfield.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/gui/textfield.cpp b/src/gui/textfield.cpp index 21c3adbc..b128701b 100644 --- a/src/gui/textfield.cpp +++ b/src/gui/textfield.cpp @@ -24,6 +24,7 @@ #include #include +#include #include "textfield.h" @@ -135,9 +136,9 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent) break; } int value = key.getValue(); - if (value == gcn::Key::LEFT || value == gcn::Key::RIGHT || - value == gcn::Key::HOME || value == gcn::Key::END || - value == gcn::Key::BACKSPACE || value == gcn::Key::DELETE) + if (value == SDLK_LEFT || value == SDLK_RIGHT || + value == SDLK_HOME || value == SDLK_END || + value == SDLK_BACKSPACE || value == SDLK_DELETE) { break; } -- cgit v1.2.3-70-g09d2