Skip to content

Commit

Permalink
Close and cancel ConfirmationDialog on Escape
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Oct 28, 2022
1 parent 843a47d commit d28ee8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ts/components/ConfirmationDialog.tsx
Expand Up @@ -131,6 +131,7 @@ export const ConfirmationDialog = React.memo(
modalName={modalName}
noMouseClose={noMouseClose}
onClose={close}
onEscape={cancelAndClose}
onTopOfEverything={onTopOfEverything}
overlayStyles={overlayStyles}
theme={theme}
Expand Down

0 comments on commit d28ee8c

Please sign in to comment.