summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-05 15:43:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-05 15:44:16 +0200
commit645d35a5e535411a70e65676387d396bc48a822d (patch)
tree77c082d38809327935cebde850f898970e007db7 /editor
parent9c4b2e301e6f92fb4b85f3f734ff011a41977eb1 (diff)
enable keyboard focus for tests pane
Diffstat (limited to 'editor')
-rw-r--r--editor/imgui-editors.cpp3
1 files changed, 2 insertions, 1 deletions
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))
{