From 0b3aca4167c72a7ab765cf8228bdc8b5b25614cf Mon Sep 17 00:00:00 2001 From: Jeffas Date: Wed, 10 Jul 2019 21:39:32 +0100 Subject: [PATCH] Add backtab to tutorial navigation This allows users to use backtab (Shift+tab) to go back through the fields in the tutorial, like C-K. This then mimics the other methods in having a forward and backward variant. Also documented this in the wizard help paragraph. --- widgets/account-wizard.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go index 117286e..5acd26c 100644 --- a/widgets/account-wizard.go +++ b/widgets/account-wizard.go @@ -155,7 +155,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard { "This wizard supports basic IMAP & SMTP configuration.\n" + "For other configurations, use to exit and read the " + "aerc-config(5) man page.\n" + - "Press to cycle between each field in this form, or and .")) + "Press and to cycle between each field in this form, or and .")) basics.AddChild( ui.NewText("Name for this account? (e.g. 'Personal' or 'Work')"). Bold(true)). @@ -680,6 +680,8 @@ func (wizard *AccountWizard) Event(event tcell.Event) bool { switch event.Key() { case tcell.KeyUp: fallthrough + case tcell.KeyBacktab: + fallthrough case tcell.KeyCtrlK: if interactive != nil { interactive[wizard.focus].Focus(false)