Added new complementary keybinds
This commit is contained in:
parent
31bd64d16a
commit
f3be917781
1 changed files with 15 additions and 1 deletions
|
@ -18,7 +18,9 @@ const Events = {
|
|||
});
|
||||
|
||||
document.addEventListener('keydown', async function (event) {
|
||||
// CTRL + F
|
||||
if (event.keyCode === 70 && event.ctrlKey) {
|
||||
app.appRoute('search')
|
||||
app.$refs.searchInput.focus()
|
||||
app.$refs.searchInput.select()
|
||||
}
|
||||
|
@ -36,6 +38,18 @@ const Events = {
|
|||
event.preventDefault()
|
||||
window.location.reload()
|
||||
}
|
||||
// CTRL + S
|
||||
if (event.keyCode === 83 && event.ctrlKey) {
|
||||
app.appRoute("settings")
|
||||
}
|
||||
// CTRL + A
|
||||
if (event.keyCode === 65 && event.ctrlKey) {
|
||||
app.appRoute("library-albums")
|
||||
}
|
||||
// CTRL + B
|
||||
if (event.keyCode === 66 && event.ctrlKey) {
|
||||
app.appRoute("browse")
|
||||
}
|
||||
// CTRL + E
|
||||
if (event.keyCode === 69 && event.ctrlKey) {
|
||||
app.invokeDrawer('queue')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue