mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
perf: Add 'Ctrl + F' shortcut to focus search filter (#692) @Larsluph
This commit is contained in:
parent
2e21c11f0c
commit
cff2191c76
1 changed files with 9 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
<v-expand-x-transition>
|
||||
<v-card v-show="searchFilterEnabled" id="searchFilter" flat xs7 md3 class="ma-0 pa-0 transparent">
|
||||
<v-text-field
|
||||
id="searchInput"
|
||||
v-model="input"
|
||||
autofocus
|
||||
flat
|
||||
|
@ -401,6 +402,14 @@ export default {
|
|||
this.selectAllTorrents()
|
||||
}
|
||||
|
||||
// 'ctrl + F' => Focus search filter field
|
||||
if (e.keyCode === 70 && e.ctrlKey) {
|
||||
e.preventDefault()
|
||||
|
||||
this.searchFilterEnabled = true
|
||||
document.getElementById('searchInput').focus()
|
||||
}
|
||||
|
||||
// 'Delete' => Delete modal
|
||||
if (e.keyCode === 46) {
|
||||
e.preventDefault()
|
||||
|
|
Loading…
Add table
Reference in a new issue