aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/settings/SettingsLayout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings/SettingsLayout.tsx')
-rw-r--r--src/components/settings/SettingsLayout.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings/SettingsLayout.tsx b/src/components/settings/SettingsLayout.tsx
index a5fa13d71..3b5d81cdd 100644
--- a/src/components/settings/SettingsLayout.tsx
+++ b/src/components/settings/SettingsLayout.tsx
@@ -7,7 +7,7 @@ import {
7 injectIntl, 7 injectIntl,
8} from 'react-intl'; 8} from 'react-intl';
9import { Outlet } from 'react-router-dom'; 9import { Outlet } from 'react-router-dom';
10import { isEscKeyPress } from '../../jsUtils'; 10import { isEscapeKeyPress } from '../../jsUtils';
11import Appear from '../ui/effects/Appear'; 11import Appear from '../ui/effects/Appear';
12import Icon from '../ui/icon'; 12import Icon from '../ui/icon';
13import ErrorBoundary from '../util/ErrorBoundary'; 13import ErrorBoundary from '../util/ErrorBoundary';
@@ -41,7 +41,7 @@ class SettingsLayout extends Component<PropsWithChildren<IProps>> {
41 } 41 }
42 42
43 handleKeyDown(e: KeyboardEvent): void { 43 handleKeyDown(e: KeyboardEvent): void {
44 if (isEscKeyPress(e.key)) { 44 if (isEscapeKeyPress(e.key)) {
45 this.props.closeSettings(); 45 this.props.closeSettings();
46 } 46 }
47 } 47 }