1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-12 17:26:17 +00:00

Merge pull request #2168 from enyaxu/bug/2018

Fixed 'Focus Search' shortcut
This commit is contained in:
Junyoung Choi (Sai)
2018-07-17 13:35:44 +09:00
committed by GitHub

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()
}
}