fixe bugg

This commit is contained in:
june 2025-03-09 11:14:33 +13:00
parent 117fa5085b
commit fcb23827e4
Signed by untrusted user who does not match committer: breadone
GPG Key ID: FDC19FE143200483

View File

@ -50,11 +50,17 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// new task
case "n":
if !m.addTask {
m.addTask = true
m.textinput.Focus()
m.textinput.Reset()
}
case "esc":
if m.addTask {
m.addTask = false
m.textinput.Reset()
}
// The "enter" key and the spacebar (a literal space) toggle
// the selected state for the item that the cursor is pointing at.