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.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/settings/SettingsLayout.tsx b/src/components/settings/SettingsLayout.tsx
index 17f8c3e33..a5fa13d71 100644
--- a/src/components/settings/SettingsLayout.tsx
+++ b/src/components/settings/SettingsLayout.tsx
@@ -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.keyCode)) { 44 if (isEscKeyPress(e.key)) {
45 this.props.closeSettings(); 45 this.props.closeSettings();
46 } 46 }
47 } 47 }