diff options
Diffstat (limited to 'src/components/settings/SettingsLayout.tsx')
-rw-r--r-- | src/components/settings/SettingsLayout.tsx | 4 |
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'; |
9 | import { Outlet } from 'react-router-dom'; | 9 | import { Outlet } from 'react-router-dom'; |
10 | import { isEscKeyPress } from '../../jsUtils'; | 10 | import { isEscapeKeyPress } from '../../jsUtils'; |
11 | import Appear from '../ui/effects/Appear'; | 11 | import Appear from '../ui/effects/Appear'; |
12 | import Icon from '../ui/icon'; | 12 | import Icon from '../ui/icon'; |
13 | import ErrorBoundary from '../util/ErrorBoundary'; | 13 | import 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 | } |