From 2f05dace5ae8abed672e4cc7460d8e9677a61662 Mon Sep 17 00:00:00 2001 From: Malkierian Date: Fri, 11 Aug 2023 17:20:26 -0700 Subject: [PATCH] Update AudioEditor.cpp --- soh/soh/Enhancements/audio/AudioEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soh/soh/Enhancements/audio/AudioEditor.cpp b/soh/soh/Enhancements/audio/AudioEditor.cpp index fd24503bb70..970685fb561 100644 --- a/soh/soh/Enhancements/audio/AudioEditor.cpp +++ b/soh/soh/Enhancements/audio/AudioEditor.cpp @@ -207,6 +207,10 @@ void Draw_SfxTab(const std::string& tabId, SeqType type) { LUS::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesOnNextTick(); UpdateCurrentBGM(defaultValue, type); } + + if (currentValue == value) { + ImGui::SetItemDefaultFocus(); + } } ImGui::EndCombo();