mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
refs #226 Changes to toggle by Ctrl + S
This commit is contained in:
@@ -251,8 +251,12 @@ class TopBar extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleFocusSearch () {
|
handleFocusSearch () {
|
||||||
|
if (this.state.searchPopupOpen) {
|
||||||
|
this.refs.search.childNodes[0].blur()
|
||||||
|
} else {
|
||||||
this.refs.search.childNodes[0].focus()
|
this.refs.search.childNodes[0].focus()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
let { config, style, data } = this.props
|
let { config, style, data } = this.props
|
||||||
|
|||||||
Reference in New Issue
Block a user