alpha release build 0.3.3

This commit is contained in:
刘浩远 2020-06-21 14:51:28 +08:00
parent 02c13cffcc
commit 7ba59c410b
3 changed files with 4 additions and 8 deletions

View File

@ -29,7 +29,7 @@ If you are using macOS or an older version of Windows, you can also [get Fluent
### Contribute ### 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). 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. Refer to the repo of [react-intl-universal](https://github.com/alibaba/react-intl-universal) to get started on internationalization.

View File

@ -1,6 +1,6 @@
{ {
"name": "fluent-reader", "name": "fluent-reader",
"version": "0.3.2", "version": "0.3.3",
"description": "A simplistic, modern desktop RSS reader", "description": "A simplistic, modern desktop RSS reader",
"main": "./dist/electron.js", "main": "./dist/electron.js",
"scripts": { "scripts": {

View File

@ -31,7 +31,6 @@ type ArticleState = {
class Article extends React.Component<ArticleProps, ArticleState> { class Article extends React.Component<ArticleProps, ArticleState> {
webview: Electron.WebviewTag webview: Electron.WebviewTag
shouldRefocus = false
constructor(props) { constructor(props) {
super(props) super(props)
@ -107,7 +106,6 @@ class Article extends React.Component<ArticleProps, ArticleState> {
if (input.type === "keyDown") { if (input.type === "keyDown") {
switch (input.key) { switch (input.key) {
case "Escape": case "Escape":
this.shouldRefocus = true
this.props.dismiss() this.props.dismiss()
break break
case "ArrowLeft": case "ArrowLeft":
@ -160,11 +158,9 @@ class Article extends React.Component<ArticleProps, ArticleState> {
} }
componentWillUnmount = () => { componentWillUnmount = () => {
if (this.shouldRefocus) {
let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement let refocus = document.querySelector(`#refocus>div[data-iid="${this.props.item._id}"]`) as HTMLElement
if (refocus) refocus.focus() if (refocus) refocus.focus()
} }
}
openInBrowser = () => { openInBrowser = () => {
openExternal(this.props.item.link) openExternal(this.props.item.link)