We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7f2d4 commit 09f81fdCopy full SHA for 09f81fd
1 file changed
browser/finder/index.js
@@ -35,10 +35,17 @@ class FinderMain extends React.Component {
35
this.keyDownHandler = e => this.handleKeyDown(e)
36
document.addEventListener('keydown', this.keyDownHandler)
37
ReactDOM.findDOMNode(this.refs.finderInput.refs.input).focus()
38
+ this.focusHandler = e => {
39
+ let { dispatch } = this.props
40
+
41
+ dispatch(searchArticle(''))
42
+ }
43
+ window.addEventListener('focus', this.focusHandler)
44
}
45
46
componentWillUnmount () {
47
document.removeEventListener('keydown', this.keyDownHandler)
48
+ window.removeEventListener('focus', this.focusHandler)
49
50
51
handleKeyDown (e) {
0 commit comments