We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1ec982 commit 2e0dc62Copy full SHA for 2e0dc62
1 file changed
examples/views/main.go
@@ -82,7 +82,7 @@ func (m model) Init() tea.Cmd {
82
// Main update function.
83
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
84
// Make sure these keys always quit
85
- if msg, ok := msg.(tea.KeyMsg); ok {
+ if msg, ok := msg.(tea.KeyPressMsg); ok {
86
k := msg.String()
87
if k == "q" || k == "esc" || k == "ctrl+c" {
88
m.Quitting = true
0 commit comments