From b90ab27a6508d5486eb0523dc2c3333e70e841b2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 28 Sep 2024 21:51:28 -0500 Subject: [PATCH] [nostalgia/core/studio] Fix Palette Color Name input to properly take focus --- .../core/src/studio/paletteeditor/paletteeditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp b/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp index 01193908..f39fb950 100644 --- a/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/paletteeditor/paletteeditor-imgui.cpp @@ -244,8 +244,8 @@ void PaletteEditorImGui::drawColorEditor() noexcept { ox::IString<50> name; name = currentName; ImGui::InputText("Name", name.data(), name.cap() + 1); + bool inputFocused = ImGui::IsItemFocused(); ImGui::Separator(); - bool inputFocused = false; colorInput("Red", r, inputFocused); colorInput("Green", g, inputFocused); colorInput("Blue", b, inputFocused);