mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
refs #226 Changes to toggle by Ctrl + S
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user