Archived
1
Fork 0

Prevent the debug button from eating text input

This commit is contained in:
redstrate 2020-09-22 22:52:39 -04:00
parent 2113c9a7da
commit 22e0c89e39

View file

@ -1,6 +1,7 @@
#include "engine.hpp"
#include <nlohmann/json.hpp>
#include <imgui.h>
#include "scene.hpp"
#include "console.hpp"
@ -454,7 +455,7 @@ void Engine::process_key_down(const unsigned int keyCode) {
_imgui->process_key_down(keyCode);
if(keyCode == platform::get_keycode(debug_button))
if(keyCode == platform::get_keycode(debug_button) && !ImGui::GetIO().WantTextInput)
debug_enabled = !debug_enabled;
}