aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffas <andrewjeffery97@gmail.com>2019-07-10 21:39:32 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-11 19:38:12 -0400
commit0b3aca4167c72a7ab765cf8228bdc8b5b25614cf (patch)
tree9a02580eb1d2ab26d79001ed4703e63e2fe4c6ec
parentb0eaf5191c9bc5b128e347625b7eef998ba63c41 (diff)
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.
-rw-r--r--widgets/account-wizard.go4
1 files changed, 3 insertions, 1 deletions
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 <Ctrl+q> to exit and read the " +
"aerc-config(5) man page.\n" +
- "Press <Tab> to cycle between each field in this form, or <Ctrl+k> and <Ctrl+j>."))
+ "Press <Tab> and <Shift+Tab> to cycle between each field in this form, or <Ctrl+j> and <Ctrl+k>."))
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)