summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index f068e4304..077b195c1 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -863,7 +863,15 @@ int Client::gameExec()
break;
case SDL_KEYDOWN:
- inputManager.handleAssignKey(event, INPUT_KEYBOARD);
+ if (inputManager.handleAssignKey(event, INPUT_KEYBOARD))
+ continue;
+ inputManager.updateConditionMask();
+ break;
+
+ case SDL_KEYUP:
+ if (inputManager.handleAssignKey(event, INPUT_KEYBOARD))
+ continue;
+ inputManager.updateConditionMask();
break;
case SDL_JOYBUTTONDOWN: