1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

refs #226 Changes to toggle by Ctrl + S

This commit is contained in:
asmsuechan
2017-01-14 01:10:38 +09:00
parent 2468c8311f
commit b9e6a56a83

View File

@@ -251,7 +251,11 @@ class TopBar extends React.Component {
} }
handleFocusSearch () { handleFocusSearch () {
this.refs.search.childNodes[0].focus() if (this.state.searchPopupOpen) {
this.refs.search.childNodes[0].blur()
} else {
this.refs.search.childNodes[0].focus()
}
} }
render () { render () {