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(); } };