summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c7c50dd9c..9245e213d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1092,6 +1092,7 @@ bool Game::handleSwitchKeys(SDL_Event &event, bool &used)
gcn::Window *requestedWindow = nullptr;
if (!NpcDialog::isAnyInputFocused()
+ && !InventoryWindow::isAnyInputFocused()
&& !keyboard.isKeyActive(keyboard.KEY_TARGET)
&& !keyboard.isKeyActive(keyboard.KEY_UNTARGET))
{