Pressione Enter reação JS
window.addEventListener('keypress', (e) => {
if (e.key !== "Enter") return
addTask()
})
Disgusted Dunlin
window.addEventListener('keypress', (e) => {
if (e.key !== "Enter") return
addTask()
})