From 7ba59c410b02923b8749bcb3ee1e8e4e8954ceac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B5=A9=E8=BF=9C?= Date: Sun, 21 Jun 2020 14:51:28 +0800 Subject: [PATCH] alpha release build 0.3.3 --- README.md | 2 +- package.json | 2 +- src/components/article.tsx | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9fc88aa..4feff80 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ If you are using macOS or an older version of Windows, you can also [get Fluent ### Contribute -Make Fluent Reader better by reporting bugs or opening feature requests through [GitHub issues](https://github.com/yang991178/fluent-reader/issues). +Help make Fluent Reader better by reporting bugs or opening feature requests through [GitHub issues](https://github.com/yang991178/fluent-reader/issues). You can also help internationalize the app by providing [translations into additional languages](https://github.com/yang991178/fluent-reader/tree/master/src/scripts/i18n). Refer to the repo of [react-intl-universal](https://github.com/alibaba/react-intl-universal) to get started on internationalization. diff --git a/package.json b/package.json index 52678d5..774240e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fluent-reader", - "version": "0.3.2", + "version": "0.3.3", "description": "A simplistic, modern desktop RSS reader", "main": "./dist/electron.js", "scripts": { diff --git a/src/components/article.tsx b/src/components/article.tsx index 6ff46f5..b9f8098 100644 --- a/src/components/article.tsx +++ b/src/components/article.tsx @@ -31,7 +31,6 @@ type ArticleState = { class Article extends React.Component { webview: Electron.WebviewTag - shouldRefocus = false constructor(props) { super(props) @@ -107,7 +106,6 @@ class Article extends React.Component { if (input.type === "keyDown") { switch (input.key) { case "Escape": - this.shouldRefocus = true this.props.dismiss() break case "ArrowLeft": @@ -160,10 +158,8 @@ class Article extends React.Component { } componentWillUnmount = () => { - if (this.shouldRefocus) { - let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement - if (refocus) refocus.focus() - } + let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement + if (refocus) refocus.focus() } openInBrowser = () => {