From 645d35a5e535411a70e65676387d396bc48a822d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Jun 2024 15:43:49 +0200 Subject: enable keyboard focus for tests pane --- editor/imgui-editors.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp index a2ddbf5b..b447984d 100644 --- a/editor/imgui-editors.cpp +++ b/editor/imgui-editors.cpp @@ -268,7 +268,8 @@ void app::draw_editor_pane(float main_menu_height) float width = 425 * dpi.x(); ImGui::SetNextWindowPos({0, main_menu_height+style.WindowPadding.y}); - ImGui::SetNextFrameWantCaptureKeyboard(false); + if (_editor->mode() != editor_mode::tests) + ImGui::SetNextFrameWantCaptureKeyboard(false); ImGui::SetNextWindowSize({width, window_size.y()-main_menu_height - style.WindowPadding.y}); if (auto b = begin_window({}, nullptr, igwf)) { -- cgit v1.2.3