diff --git a/browser/finder/index.js b/browser/finder/index.js index 8bc5555c..72701f74 100644 --- a/browser/finder/index.js +++ b/browser/finder/index.js @@ -48,34 +48,21 @@ class FinderMain extends React.Component { } this.focusHandler = (e) => this.handleWindowFocus(e) - this.blurHandler = (e) => this.handleWindowBlur(e) } componentDidMount () { this.refs.search.focus() window.addEventListener('focus', this.focusHandler) - window.addEventListener('blur', this.blurHandler) } componentWillUnmount () { window.removeEventListener('focus', this.focusHandler) - window.removeEventListener('blur', this.blurHandler) } handleWindowFocus (e) { this.refs.search.focus() } - handleWindowBlur (e) { - let { filter } = this.state - filter.type = 'ALL' - this.setState({ - search: '', - filter, - index: 0 - }) - } - handleKeyDown (e) { this.refs.search.focus() if (e.keyCode === 9) {