disable ctr+c so u can only exit with q
This commit is contained in:
@@ -440,7 +440,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
|
|
||||||
case tea.KeyPressMsg:
|
case tea.KeyPressMsg:
|
||||||
if msg.String() == "ctrl+c" {
|
if msg.String() == "ctrl+c" {
|
||||||
return m, tea.Quit
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if m.issueList.FilterState() == list.Filtering {
|
if m.issueList.FilterState() == list.Filtering {
|
||||||
|
|||||||
@@ -641,11 +641,12 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
case tea.KeyPressMsg:
|
case tea.KeyPressMsg:
|
||||||
|
fl := m.FocusedIssueList()
|
||||||
|
|
||||||
if msg.String() == "ctrl+c" {
|
if msg.String() == "ctrl+c" {
|
||||||
return m, tea.Quit
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fl := m.FocusedIssueList()
|
|
||||||
if fl.FilterState() == list.Filtering {
|
if fl.FilterState() == list.Filtering {
|
||||||
cmd, _ := fl.Update(msg)
|
cmd, _ := fl.Update(msg)
|
||||||
return m, cmd
|
return m, cmd
|
||||||
|
|||||||
Reference in New Issue
Block a user