From 25371488bd2b58892f09798f481e7d4992373b44 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Mar 2012 00:27:01 +0300 Subject: Block move/direction shortcuts in inventory/storage input fields. --- src/game.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index a0c2a6151..33bfe232a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1317,7 +1317,8 @@ void Game::handleMoveAndAttack(SDL_Event &event, bool wasDown) if (player_node->isAlive() && (!Being::isTalking() || keyboard.getKeyIndex(event.key.keysym.sym) == KeyboardConfig::KEY_TALK) - && chatWindow && !chatWindow->isInputFocused() && !quitDialog) + && chatWindow && !chatWindow->isInputFocused() + && !InventoryWindow::isAnyInputFocused() && !quitDialog) { // Get the state of the keyboard keys keyboard.refreshActiveKeys(); -- cgit v1.2.3-60-g2f50