Prevent the debug button from eating text input
This commit is contained in:
parent
2113c9a7da
commit
22e0c89e39
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include "engine.hpp"
|
#include "engine.hpp"
|
||||||
|
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
|
#include <imgui.h>
|
||||||
|
|
||||||
#include "scene.hpp"
|
#include "scene.hpp"
|
||||||
#include "console.hpp"
|
#include "console.hpp"
|
||||||
|
@ -454,7 +455,7 @@ void Engine::process_key_down(const unsigned int keyCode) {
|
||||||
|
|
||||||
_imgui->process_key_down(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;
|
debug_enabled = !debug_enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue