diff options
Diffstat (limited to 'src/components/settings/releaseNotes/ReleaseNotesLayout.tsx')
-rw-r--r-- | src/components/settings/releaseNotes/ReleaseNotesLayout.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/settings/releaseNotes/ReleaseNotesLayout.tsx b/src/components/settings/releaseNotes/ReleaseNotesLayout.tsx index 4fb31d053..1743bb5a1 100644 --- a/src/components/settings/releaseNotes/ReleaseNotesLayout.tsx +++ b/src/components/settings/releaseNotes/ReleaseNotesLayout.tsx | |||
@@ -9,7 +9,7 @@ import { | |||
9 | import { mdiClose } from '@mdi/js'; | 9 | import { mdiClose } from '@mdi/js'; |
10 | import { Outlet } from 'react-router-dom'; | 10 | import { Outlet } from 'react-router-dom'; |
11 | import type { Actions } from '../../../actions/lib/actions'; | 11 | import type { Actions } from '../../../actions/lib/actions'; |
12 | import { isEscKeyPress } from '../../../jsUtils'; | 12 | import { isEscapeKeyPress } from '../../../jsUtils'; |
13 | import Appear from '../../ui/effects/Appear'; | 13 | import Appear from '../../ui/effects/Appear'; |
14 | import Icon from '../../ui/icon'; | 14 | import Icon from '../../ui/icon'; |
15 | import ErrorBoundary from '../../util/ErrorBoundary'; | 15 | import ErrorBoundary from '../../util/ErrorBoundary'; |
@@ -44,7 +44,7 @@ class ReleaseNotesLayout extends Component<IProps> { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | handleKeyDown(e: KeyboardEvent) { | 46 | handleKeyDown(e: KeyboardEvent) { |
47 | if (isEscKeyPress(e.key)) { | 47 | if (isEscapeKeyPress(e.key)) { |
48 | this.props.actions!.ui.closeSettings(); | 48 | this.props.actions!.ui.closeSettings(); |
49 | } | 49 | } |
50 | } | 50 | } |