diff --git a/src/client/inputhandler.cpp b/src/client/inputhandler.cpp index f308f35878..e9f90c7820 100644 --- a/src/client/inputhandler.cpp +++ b/src/client/inputhandler.cpp @@ -77,10 +77,10 @@ void MyEventReceiver::reloadKeybindings() keysListenedFor.clear(); for (int i = 0; i < KeyType::INTERNAL_ENUM_COUNT; i++) { GameKeyType game_key = static_cast(i); + keybindings[i].emplace_back(game_key); for (auto key: keybindings[i]) { listenForKey(key, game_key); } - listenForKey(game_key, game_key); } }