Add: add hotkeys to modals, player, and ereader #121, Fix: audio player track not resizing on window resize #123, Add: sortable columns on manage tracks page #128

This commit is contained in:
advplyr 2021-10-23 16:49:34 -05:00
parent 97a065030e
commit 98c1ee01fd
12 changed files with 176 additions and 61 deletions

View file

@ -15,17 +15,18 @@ const Constants = {
CoverDestination
}
const Hotkeys = {
PLAY_PAUSE: 32, // Space
JUMP_FORWARD: 39, // ArrowRight
JUMP_BACKWARD: 37, // ArrowLeft
CLOSE: 27, // ESCAPE
VOLUME_UP: 38, // ArrowUp
VOLUME_DOWN: 40, // ArrowDown
MUTE: 77, // M
const KeyNames = {
27: 'Escape',
32: 'Space',
37: 'ArrowLeft',
38: 'ArrowUp',
39: 'ArrowRight',
40: 'ArrowDown',
76: 'KeyL',
77: 'KeyM'
}
export default ({ app }, inject) => {
inject('constants', Constants)
inject('hotkeys', Hotkeys)
inject('keynames', KeyNames)
}