mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-24 09:49:24 +02:00
Fix: hotkeys prevent default browser behavior #135, Fix: mark audiobook as read when less than 10s remaining
This commit is contained in:
parent
aca88f73ad
commit
874c910e24
9 changed files with 69 additions and 39 deletions
|
@ -25,8 +25,33 @@ const KeyNames = {
|
|||
76: 'KeyL',
|
||||
77: 'KeyM'
|
||||
}
|
||||
const Hotkeys = {
|
||||
AudioPlayer: {
|
||||
PLAY_PAUSE: 'Space',
|
||||
JUMP_FORWARD: 'ArrowRight',
|
||||
JUMP_BACKWARD: 'ArrowLeft',
|
||||
VOLUME_UP: 'ArrowUp',
|
||||
VOLUME_DOWN: 'ArrowDown',
|
||||
MUTE_UNMUTE: 'KeyM',
|
||||
SHOW_CHAPTERS: 'KeyL',
|
||||
INCREASE_PLAYBACK_RATE: 'Shift-ArrowUp',
|
||||
DECREASE_PLAYBACK_RATE: 'Shift-ArrowDown',
|
||||
CLOSE: 'Escape'
|
||||
},
|
||||
EReader: {
|
||||
NEXT_PAGE: 'ArrowRight',
|
||||
PREV_PAGE: 'ArrowLeft',
|
||||
CLOSE: 'Escape'
|
||||
},
|
||||
Modal: {
|
||||
NEXT_PAGE: 'ArrowRight',
|
||||
PREV_PAGE: 'ArrowLeft',
|
||||
CLOSE: 'Escape'
|
||||
}
|
||||
}
|
||||
|
||||
export default ({ app }, inject) => {
|
||||
inject('constants', Constants)
|
||||
inject('keynames', KeyNames)
|
||||
inject('hotkeys', Hotkeys)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue