1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Fixed 'Focus Search' shortcut

This commit is contained in:
JianXu
2018-07-02 21:43:46 +08:00
parent 9d9109e9e5
commit d2b2e76a6a

View File

@@ -156,8 +156,7 @@ class TopBar extends React.Component {
if (this.state.isSearching) {
el.blur()
} else {
el.focus()
el.setSelectionRange(0, el.value.length)
el.select()
}
}