Skip to content

Commit b65daeb

Browse files
committed
fix(examples): capability make sure input is focused on start
1 parent 76f2e6d commit b65daeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/capability/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func main() {
6060
m := model{}
6161
m.input = textinput.New()
6262
m.input.Placeholder = "Enter capability name to request"
63+
m.input.Focus()
6364

6465
if _, err := tea.NewProgram(m).Run(); err != nil {
6566
fmt.Fprintln(os.Stderr, "Uh oh:", err)

0 commit comments

Comments
 (0)