From af8c926c8afd0f98a1f12e1169897077b11e36ef Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 28 Oct 2023 02:41:34 -0500 Subject: [PATCH] GUI: fix an annoyance in sample editor --- src/gui/sampleEdit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index 9e82122162..5a57483ddf 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -572,6 +572,7 @@ void FurnaceGUI::drawSampleEdit() { sampleNoteCoarse=i; coarseChanged=true; } + if (i==sampleNoteCoarse) ImGui::SetItemDefaultFocus(); } ImGui::EndCombo(); } else if (ImGui::IsItemHovered()) {