From 06c9ca9d24293e4dda3fc196b5c6df2cb61408da Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 27 Oct 2022 17:09:13 -0700 Subject: [PATCH] Close and cancel ConfirmationDialog on Escape --- ts/components/ConfirmationDialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/components/ConfirmationDialog.tsx b/ts/components/ConfirmationDialog.tsx index 328e5d753..4020d2f9b 100644 --- a/ts/components/ConfirmationDialog.tsx +++ b/ts/components/ConfirmationDialog.tsx @@ -131,6 +131,7 @@ export const ConfirmationDialog = React.memo( modalName={modalName} noMouseClose={noMouseClose} onClose={close} + onEscape={cancelAndClose} onTopOfEverything={onTopOfEverything} overlayStyles={overlayStyles} theme={theme}