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:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user