diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-01 12:40:30 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-01 12:40:30 +0300 |
| commit | 27dbaf2b2d5895a091d04aa1c852abb91a619e2d (patch) | |
| tree | 846ba964ee6f0fba52ccb2b1750d44b21c454efb /web/js/keyboard.js | |
| parent | badc2543eaa319657ecc97453fbdca58679ecb87 (diff) | |
Minimalist UI: hide all elements until activated; add help modal and keyboard shortcuts
- Redesign UI to be invisible by default: only header + '?' button shown
- Press m to show sidebar, t for toolbar, / for search, ? for help
- Add help modal with all keyboard shortcuts
- Fix scanner to skip corrupt/unprobeable files instead of aborting
- Fix scanner to skip thumbnail errors instead of aborting
- Fix rescan to use background context so it completes after HTTP response
- Rename project from KISS Media Player to Player
Diffstat (limited to 'web/js/keyboard.js')
| -rw-r--r-- | web/js/keyboard.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/js/keyboard.js b/web/js/keyboard.js index dbf1ac0..7d4dd77 100644 --- a/web/js/keyboard.js +++ b/web/js/keyboard.js @@ -23,8 +23,11 @@ export function initKeyboard(handlers) { case 's': handlers.share?.(e); break; case '/': e.preventDefault(); handlers.search?.(e); break; case 'n': handlers.notes?.(e); break; - case 't': handlers.tags?.(e); break; + case 't': handlers.toolbar?.(e); break; + case 'm': handlers.sidebar?.(e); break; case 'd': handlers.download?.(e); break; + case 'u': handlers.upload?.(e); break; + case '?': e.preventDefault(); handlers.help?.(e); break; } }); } |
