Skip to content
Myr

The q key also quits in the pager example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 5d34c88 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:examples/pager/main.go+1 added-1 removed
86 unmodified lines
8788 switch msg := msg.(type) {89 case tea.KeyMsg:90 // Ctrl+c exits91 if msg.Type == tea.KeyCtrlC {91 if k := msg.String(); k == "ctrl+c" || k == "q" {92 return m, tea.Quit93 }9495 case tea.WindowSizeMsg:
63 unmodified lines