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
|
@ -155,7 +155,7 @@ func NewAccountWizard(conf *config.AercConfig, aerc *Aerc) *AccountWizard {
|
||||||
"This wizard supports basic IMAP & SMTP configuration.\n" +
|
"This wizard supports basic IMAP & SMTP configuration.\n" +
|
||||||
"For other configurations, use <Ctrl+q> to exit and read the " +
|
"For other configurations, use <Ctrl+q> to exit and read the " +
|
||||||
"aerc-config(5) man page.\n" +
|
"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(
|
basics.AddChild(
|
||||||
ui.NewText("Name for this account? (e.g. 'Personal' or 'Work')").
|
ui.NewText("Name for this account? (e.g. 'Personal' or 'Work')").
|
||||||
Bold(true)).
|
Bold(true)).
|
||||||
|
@ -680,6 +680,8 @@ func (wizard *AccountWizard) Event(event tcell.Event) bool {
|
||||||
switch event.Key() {
|
switch event.Key() {
|
||||||
case tcell.KeyUp:
|
case tcell.KeyUp:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
case tcell.KeyBacktab:
|
||||||
|
fallthrough
|
||||||
case tcell.KeyCtrlK:
|
case tcell.KeyCtrlK:
|
||||||
if interactive != nil {
|
if interactive != nil {
|
||||||
interactive[wizard.focus].Focus(false)
|
interactive[wizard.focus].Focus(false)
|
||||||
|
|
Loading…
Reference in New Issue