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) {
|
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()
|
||||||
}
|
}
|
||||||
|
@ -35,7 +37,19 @@ const Events = {
|
||||||
if (event.keyCode === 82 && event.ctrlKey && event.shiftKey) {
|
if (event.keyCode === 82 && event.ctrlKey && event.shiftKey) {
|
||||||
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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue