forked from Mirrors/bubbletea
Fix list-default to be able to exit with ctrl+c
This commit is contained in:
parent
98a8bcf62a
commit
14478e2a3c
|
@ -31,7 +31,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
if msg.String() == "ctrl+c" {
|
if msg.String() == "ctrl+c" {
|
||||||
return m, nil
|
return m, tea.Quit
|
||||||
}
|
}
|
||||||
case tea.WindowSizeMsg:
|
case tea.WindowSizeMsg:
|
||||||
top, right, bottom, left := docStyle.GetMargin()
|
top, right, bottom, left := docStyle.GetMargin()
|
||||||
|
|
Loading…
Reference in New Issue