aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/downloadManager/DownloadManagerLayout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/downloadManager/DownloadManagerLayout.tsx')
-rw-r--r--src/components/downloadManager/DownloadManagerLayout.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/downloadManager/DownloadManagerLayout.tsx b/src/components/downloadManager/DownloadManagerLayout.tsx
index 08c0ace1e..43670355c 100644
--- a/src/components/downloadManager/DownloadManagerLayout.tsx
+++ b/src/components/downloadManager/DownloadManagerLayout.tsx
@@ -44,8 +44,8 @@ class DownloadManagerLayout extends Component<IProps> {
44 ); 44 );
45 } 45 }
46 46
47 handleKeyDown(e) { 47 handleKeyDown(e: KeyboardEvent) {
48 if (isEscKeyPress(e.keyCode)) { 48 if (isEscKeyPress(e.key)) {
49 this.props.actions!.ui.closeSettings(); 49 this.props.actions!.ui.closeSettings();
50 } 50 }
51 } 51 }