charmbracelet / wizard-tutorial

A basic wizard made with Bubble Tea and Lip Gloss. Follow along with the tutorial video for this project:
https://youtu.be/Gl31diSVP8M
84 stars 3 forks source link

You show how to render and pull Value() from textarea but there is no way to enter more than one line in this example #2

Open jarrodhroberson opened 9 months ago

jarrodhroberson commented 9 months ago

Go to question 3 and try and enter more than one line.

There is no way to enter a line feed or move to the next line that is obvious.

When you press ENTER it ends the wizard.

Please add how to accept multiple lines.

rija commented 8 months ago

When I was following the tutorial it bothered me too, so I changed the validation key from ENTER to Tab (tea.KeyTab.String()), so that way in the last long form question, I could create multi-line answers.