perf: Allow native find (#864)

This commit is contained in:
Rémi Marseault 2023-06-15 14:04:03 +02:00 committed by GitHub
parent fe1f962c33
commit 7221a3db4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -450,10 +450,12 @@ export default {
// 'ctrl + F' => Focus search filter field
if (e.keyCode === 70 && doesCommand(e)) {
const searchInput = document.getElementById('searchInput')
if (document.activeElement !== searchInput) {
e.preventDefault()
this.searchFilterEnabled = true
document.getElementById('searchInput').focus()
searchInput.focus()
}
}
// 'Escape' => Remove focus from search field