From 874d22e0a27971489a61f520a6c609c0af6f8067 Mon Sep 17 00:00:00 2001 From: Faur Ioan-Aurel Date: Wed, 9 Apr 2025 21:22:20 +0300 Subject: [PATCH] impl: swap button order - we want "Connect" button to be highlighted - Toolbox highlights the first button in the action list --- CHANGELOG.md | 4 ++++ src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce7ecd5..be5a605 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Changed + +- action buttons on the token input step were swapped to achieve better keyboard navigation + ## 0.1.3 - 2025-04-09 ### Fixed diff --git a/src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt b/src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt index c423bfe..a39288d 100644 --- a/src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt +++ b/src/main/kotlin/com/coder/toolbox/views/AuthWizardPage.kt @@ -59,14 +59,14 @@ class AuthWizardPage( } actionButtons.update { listOf( - Action(context.i18n.ptrl("Back"), closesPage = false, actionBlock = { - tokenStep.onBack() - displaySteps() - }), Action(context.i18n.ptrl("Connect"), closesPage = false, actionBlock = { if (tokenStep.onNext()) { displaySteps() } + }), + Action(context.i18n.ptrl("Back"), closesPage = false, actionBlock = { + tokenStep.onBack() + displaySteps() }) ) }