mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-01 05:29:41 +00:00
feat: implement global context-aware keyboard shortcuts and modal keyboard support (Enter/Esc)
This commit is contained in:
parent
696961ea4c
commit
791d78884d
7 changed files with 36 additions and 5 deletions
|
|
@ -47,6 +47,7 @@ const Constants = {
|
|||
}
|
||||
|
||||
const KeyNames = {
|
||||
13: 'Enter',
|
||||
27: 'Escape',
|
||||
32: 'Space',
|
||||
37: 'ArrowLeft',
|
||||
|
|
@ -77,7 +78,8 @@ const Hotkeys = {
|
|||
Modal: {
|
||||
NEXT_PAGE: 'ArrowRight',
|
||||
PREV_PAGE: 'ArrowLeft',
|
||||
CLOSE: 'Escape'
|
||||
CLOSE: 'Escape',
|
||||
SUBMIT: 'Enter'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue