1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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 () {
this.refs.search.childNodes[0].focus()
if (this.state.searchPopupOpen) {
this.refs.search.childNodes[0].blur()
} else {
this.refs.search.childNodes[0].focus()
}
}
render () {