alpha release build 0.3.3
This commit is contained in:
parent
02c13cffcc
commit
7ba59c410b
|
@ -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.
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -31,7 +31,6 @@ type ArticleState = {
|
|||
|
||||
class Article extends React.Component<ArticleProps, ArticleState> {
|
||||
webview: Electron.WebviewTag
|
||||
shouldRefocus = false
|
||||
|
||||
constructor(props) {
|
||||
super(props)
|
||||
|
@ -107,7 +106,6 @@ class Article extends React.Component<ArticleProps, ArticleState> {
|
|||
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<ArticleProps, ArticleState> {
|
|||
}
|
||||
|
||||
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 = () => {
|
||||
|
|
Loading…
Reference in New Issue