forked from Mirrors/bubbletea
Fix typo in examples/result
This commit is contained in:
parent
6eabfd726e
commit
da9e8ee75a
|
@ -29,7 +29,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch msg.String() {
|
switch msg.String() {
|
||||||
case "ctrl+c", "q", "esc":
|
case "ctrl+c", "q", "esc":
|
||||||
close(m.choice) // If we're quitting just chose the channel.
|
close(m.choice) // If we're quitting just close the channel.
|
||||||
return m, tea.Quit
|
return m, tea.Quit
|
||||||
|
|
||||||
case "enter":
|
case "enter":
|
||||||
|
|
Loading…
Reference in New Issue