diff options
Diffstat (limited to 'src/components/downloadManager')
-rw-r--r-- | src/components/downloadManager/DownloadManagerDashboard.tsx | 1 | ||||
-rw-r--r-- | src/components/downloadManager/DownloadManagerLayout.tsx | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/components/downloadManager/DownloadManagerDashboard.tsx b/src/components/downloadManager/DownloadManagerDashboard.tsx index 490be269d..aeaa94634 100644 --- a/src/components/downloadManager/DownloadManagerDashboard.tsx +++ b/src/components/downloadManager/DownloadManagerDashboard.tsx | |||
@@ -47,7 +47,6 @@ interface IState { | |||
47 | data: string; | 47 | data: string; |
48 | } | 48 | } |
49 | 49 | ||
50 | // eslint-disable-next-line react/prefer-stateless-function | ||
51 | class DownloadManagerDashboard extends Component<IProps, IState> { | 50 | class DownloadManagerDashboard extends Component<IProps, IState> { |
52 | render() { | 51 | render() { |
53 | const { intl, stores, actions } = this.props; | 52 | const { intl, stores, actions } = this.props; |
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 | } |