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.
This commit is contained in:
parent
b0eaf5191c
commit
0b3aca4167
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue