Added new complementary keybinds

This commit is contained in:
Mefsaal 2022-04-22 00:50:45 -03:00
parent 31bd64d16a
commit f3be917781

View file

@ -18,7 +18,9 @@ const Events = {
}); });
document.addEventListener('keydown', async function (event) { document.addEventListener('keydown', async function (event) {
// CTRL + F
if (event.keyCode === 70 && event.ctrlKey) { if (event.keyCode === 70 && event.ctrlKey) {
app.appRoute('search')
app.$refs.searchInput.focus() app.$refs.searchInput.focus()
app.$refs.searchInput.select() app.$refs.searchInput.select()
} }
@ -36,6 +38,18 @@ const Events = {
event.preventDefault() event.preventDefault()
window.location.reload() 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 // CTRL + E
if (event.keyCode === 69 && event.ctrlKey) { if (event.keyCode === 69 && event.ctrlKey) {
app.invokeDrawer('queue') app.invokeDrawer('queue')