When I press ESC, the console shows 'focus' of undefined
Before event uppy
Hi! Could you paste the full error message (screenshot would be awesome too) and steps to reproduce? Tried just pressing ESC on the Dashboard — the modal windows has closed as expected.

step1. into web & open console (focus web ,not console)
step2. press esc , you can see that
step3. open uppy & close modal
step4 press esc , you can't see error


Remember not to press uppy before press esc
Aha, closeModal is being called even if the modal is already closed. that makes sense. Thanks for the report.
@arturi Maybe we should add the event handlers for tab order and ESC inside showModal and remove them in closeModal?
Most helpful comment
@arturi Maybe we should add the event handlers for tab order and ESC inside showModal and remove them in closeModal?