Close and cancel ConfirmationDialog on Escape

This commit is contained in:
Fedor Indutny 2022-10-27 17:09:13 -07:00 committed by GitHub
parent 335cb6dd13
commit 06c9ca9d24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,6 +131,7 @@ export const ConfirmationDialog = React.memo(
modalName={modalName}
noMouseClose={noMouseClose}
onClose={close}
onEscape={cancelAndClose}
onTopOfEverything={onTopOfEverything}
overlayStyles={overlayStyles}
theme={theme}