From c4617f1f57a167af4d9715ebdea6d1174bd7de56 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 29 Jun 2022 15:39:12 +0200 Subject: [PATCH] fix(web/settings): run the close function when exiting with ESC Apparently no one notices the focus was being trapped if you were to exit with ESC --- web/src/features/settings/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/features/settings/index.tsx b/web/src/features/settings/index.tsx index d165fac..11d5cc7 100644 --- a/web/src/features/settings/index.tsx +++ b/web/src/features/settings/index.tsx @@ -46,6 +46,7 @@ const Settings: React.FC = () => { onClose={onClose} isCentered closeOnEsc + onEsc={closeSettings} closeOnOverlayClick={false} size="xs" >