From 8f3464a75600e991bbce22229d6e5b99975416f0 Mon Sep 17 00:00:00 2001 From: Sharun <715417+sharunkumar@users.noreply.github.com> Date: Thu, 11 Jan 2024 07:38:58 -0800 Subject: [PATCH] handle "q" for quitting in list-simple example (#839) --- examples/list-simple/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/list-simple/main.go b/examples/list-simple/main.go index f8f85ed..4d4b4a6 100644 --- a/examples/list-simple/main.go +++ b/examples/list-simple/main.go @@ -67,7 +67,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyMsg: switch keypress := msg.String(); keypress { - case "ctrl+c": + case "q", "ctrl+c": m.quitting = true return m, tea.Quit