From cb04d148c9aed572fe6e66313100e2cd9b66f5d5 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Wed, 14 Nov 2007 09:26:03 +0000 Subject: Fixed up and down arrows in chat box. --- src/gui/chat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index de47c8a9..2fd68c71 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -25,19 +25,19 @@ #include #include -#include #include "chat.h" #include "browserbox.h" -#include "../channelmanager.h" -#include "../channel.h" #include "chatinput.h" #include "gccontainer.h" #include "scrollarea.h" +#include "sdlinput.h" #include "tabbedcontainer.h" #include "windowcontainer.h" +#include "../channelmanager.h" +#include "../channel.h" #include "../game.h" #include "../localplayer.h" @@ -507,7 +507,7 @@ ChatWindow::sendToChannel(short channelId, std::string user, std::string msg) void ChatWindow::keyPressed(gcn::KeyEvent &event) { - if (event.getKey().getValue() == gcn::Key::DOWN && + if (event.getKey().getValue() == Key::DOWN && mCurHist != mHistory.end()) { // Move forward through the history @@ -520,7 +520,7 @@ ChatWindow::keyPressed(gcn::KeyEvent &event) mCurHist = prevHist; } } - else if (event.getKey().getValue() == gcn::Key::UP && + else if (event.getKey().getValue() == Key::UP && mCurHist != mHistory.begin() && mHistory.size() > 0) { // Move backward through the history -- cgit v1.2.3-70-g09d2