From 2d6e748036559bfd3ea1d079977afa6f0ed95f4f Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 5 May 2025 16:20:50 -0400 Subject: [PATCH] Set default focus during setup process This makes it way easier to quickly go through the setup process with a keyboard! --- launcher/ui/Setup/AddSquareEnix.qml | 1 + launcher/ui/Setup/InstallBenchmark.qml | 1 + launcher/ui/Setup/InstallGame.qml | 1 + launcher/ui/Setup/SetupPage.qml | 1 + 4 files changed, 4 insertions(+) diff --git a/launcher/ui/Setup/AddSquareEnix.qml b/launcher/ui/Setup/AddSquareEnix.qml index b9f9b1e..8e11525 100644 --- a/launcher/ui/Setup/AddSquareEnix.qml +++ b/launcher/ui/Setup/AddSquareEnix.qml @@ -35,6 +35,7 @@ FormCard.FormCardPage { id: usernameField label: i18n("Username") + focus: true } FormCard.FormDelegateSeparator { above: usernameField diff --git a/launcher/ui/Setup/InstallBenchmark.qml b/launcher/ui/Setup/InstallBenchmark.qml index 1ff992a..f007d45 100644 --- a/launcher/ui/Setup/InstallBenchmark.qml +++ b/launcher/ui/Setup/InstallBenchmark.qml @@ -52,6 +52,7 @@ FormCard.FormCardPage { onClicked: page.Window.window.pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "BenchmarkInstallProgress"), { benchmarkInstaller: LauncherCore.createBenchmarkInstaller(page.profile) }) + focus: true } FormCard.FormDelegateSeparator { diff --git a/launcher/ui/Setup/InstallGame.qml b/launcher/ui/Setup/InstallGame.qml index f499a43..f02b942 100644 --- a/launcher/ui/Setup/InstallGame.qml +++ b/launcher/ui/Setup/InstallGame.qml @@ -52,6 +52,7 @@ FormCard.FormCardPage { onClicked: page.Window.window.pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "InstallProgress"), { gameInstaller: LauncherCore.createInstaller(page.profile) }) + focus: true } FormCard.FormDelegateSeparator { diff --git a/launcher/ui/Setup/SetupPage.qml b/launcher/ui/Setup/SetupPage.qml index e0173a2..821c65a 100644 --- a/launcher/ui/Setup/SetupPage.qml +++ b/launcher/ui/Setup/SetupPage.qml @@ -105,6 +105,7 @@ FormCard.FormCardPage { onClicked: page.Window.window.pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "InstallGame"), { profile: page.profile }) + focus: true } FormCard.FormDelegateSeparator {