Fix closed confirmation being triggered by enter