From 5b6721738b96e89a2d683db8a21ace7b06b705b0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 19 Feb 2025 00:14:21 -0500 Subject: [PATCH] GUI: change instrument on mobile? --- src/gui/commandPalette.cpp | 2 +- src/gui/editControls.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/commandPalette.cpp b/src/gui/commandPalette.cpp index 6eb0c67a4..3855f2216 100644 --- a/src/gui/commandPalette.cpp +++ b/src/gui/commandPalette.cpp @@ -146,7 +146,7 @@ static void matchFuzzyTest() { void FurnaceGUI::drawPalette() { bool accepted=false; - if (paletteFirstFrame) + if (paletteFirstFrame && !mobileUI) ImGui::SetKeyboardFocusHere(); int width=ImGui::GetContentRegionAvail().x; diff --git a/src/gui/editControls.cpp b/src/gui/editControls.cpp index 15020e67c..28d066fa6 100644 --- a/src/gui/editControls.cpp +++ b/src/gui/editControls.cpp @@ -106,7 +106,7 @@ const int mobileButtonActions[32]={ 0, // page 3 - 0, + GUI_ACTION_CMDPAL_INSTRUMENT_CHANGE, GUI_ACTION_WINDOW_FIND, GUI_ACTION_PAT_COLLAPSE_ROWS, GUI_ACTION_PAT_EXPAND_ROWS,