mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
feat(ui): improve keyboard shortcuts discoverability and centralized management
This commit is contained in:
parent
b581b4f86c
commit
d7a2f4a515
9 changed files with 233 additions and 39 deletions
|
|
@ -54,8 +54,17 @@ const KeyNames = {
|
|||
38: 'ArrowUp',
|
||||
39: 'ArrowRight',
|
||||
40: 'ArrowDown',
|
||||
57: 'Key9',
|
||||
65: 'KeyA',
|
||||
67: 'KeyC',
|
||||
72: 'KeyH',
|
||||
75: 'KeyK',
|
||||
76: 'KeyL',
|
||||
77: 'KeyM'
|
||||
77: 'KeyM',
|
||||
81: 'KeyQ',
|
||||
82: 'KeyR',
|
||||
83: 'KeyS',
|
||||
191: 'Slash'
|
||||
}
|
||||
const Hotkeys = {
|
||||
AudioPlayer: {
|
||||
|
|
@ -80,6 +89,31 @@ const Hotkeys = {
|
|||
PREV_PAGE: 'ArrowLeft',
|
||||
CLOSE: 'Escape',
|
||||
SUBMIT: 'Enter'
|
||||
},
|
||||
Global: {
|
||||
SHORTCUTS_HELPER: 'Shift-Slash'
|
||||
},
|
||||
Navigation: {
|
||||
HOME: 'Alt-KeyH',
|
||||
LIBRARY: 'Alt-KeyL',
|
||||
SERIES: 'Alt-KeyS',
|
||||
COLLECTIONS: 'Alt-KeyC',
|
||||
AUTHORS: 'Alt-KeyA'
|
||||
},
|
||||
Batch: {
|
||||
SELECT_ALL: 'Alt-KeyA',
|
||||
CONSOLIDATE: 'Alt-KeyK',
|
||||
MERGE: 'Alt-KeyM',
|
||||
MOVE: 'Shift-Alt-KeyM',
|
||||
RESET: 'Alt-KeyR',
|
||||
MATCH: 'Alt-KeyQ',
|
||||
CANCEL: 'Escape'
|
||||
},
|
||||
Item: {
|
||||
CONSOLIDATE: 'Alt-KeyK',
|
||||
MOVE: 'Shift-Alt-KeyM',
|
||||
RESET: 'Alt-KeyR',
|
||||
MATCH: 'Alt-KeyQ'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue