summaryrefslogtreecommitdiff
path: root/web/js/keyboard.js
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-01 12:40:30 +0300
committerPaul Buetow <paul@buetow.org>2026-05-01 12:40:30 +0300
commit27dbaf2b2d5895a091d04aa1c852abb91a619e2d (patch)
tree846ba964ee6f0fba52ccb2b1750d44b21c454efb /web/js/keyboard.js
parentbadc2543eaa319657ecc97453fbdca58679ecb87 (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.js5
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;
}
});
}