Fix escape key in options panel of icon marketplace download menu

This commit is contained in:
2026-01-22 22:50:37 -07:00
parent e7a21b837f
commit 333e1e0a35
2 changed files with 4 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ public class IconMarketplaceManager : MonoBehaviour
{
if (Keyboard.current.escapeKey.wasPressedThisFrame)
{
if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
if (downloadPanelScript.optionsPanel.activeSelf) downloadPanelScript.optionsPanelSubmitButton.onClick.Invoke();
else if (downloadPanel.activeSelf || uploadPanel.activeSelf) SwitchPanel(0);
else await SceneManager.LoadSceneAsync("MainMenu");
}
}