From 41906acb990895831e3b2c39102f41c9b580ae10 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Thu, 8 May 2008 00:39:29 +0000 Subject: Allow page up and page down to scroll the chat window, based on patch by fate. --- src/game.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 8096ada4..b12b114f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -532,6 +532,22 @@ void Game::handleInput() } switch (event.key.keysym.sym) { + case SDLK_PAGEUP: + if (chatWindow->isVisible()) + { + chatWindow->scroll(-DEFAULT_CHAT_WINDOW_SCROLL); + used = true; + } + break; + + case SDLK_PAGEDOWN: + if (chatWindow->isVisible()) + { + chatWindow->scroll(DEFAULT_CHAT_WINDOW_SCROLL); + used = true; + } + break; + case SDLK_F1: // In-game Help if (helpWindow->isVisible()) -- cgit v1.2.3-70-g09d2