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