From e5ec4643cb2df3c3836cbd73c24c1831a72d7fd5 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 30 Sep 2026 07:58:48 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9Center=E2=80=9D=20key=20closing?= =?UTF-8?q?=20modals=20(#40757)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/javascript/mastodon/components/modal_root.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/modal_root.jsx b/app/javascript/mastodon/components/modal_root.jsx index 3a79fce9fd9..c1c2e9b068e 100644 --- a/app/javascript/mastodon/components/modal_root.jsx +++ b/app/javascript/mastodon/components/modal_root.jsx @@ -54,7 +54,7 @@ class ModalRoot extends PureComponent { e.stopPropagation(); e.preventDefault(); } - } else if (key === 'enter' && !e.defaultPrevented && !!this.props.children) { + } else if (key === 'escape' && !e.defaultPrevented && !!this.props.children) { this.props.onClose(); } };