Fix `Enter` not working sometimes to confirm
Fix `Enter` not working sometimes to confirm

Fixes an issue where pressing the `Enter` key while a confirmation popup
is opened, doesn't always actually confirm.
To reproduce the issue, try deleting a schedule item by confirming with
`Enter` key.

aznashwan/coriolis-web,aznashwan/coriolis-web