From 9996653cdc79ac047eae44143a0b7b8eb081b1dc Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Sat, 11 Apr 2026 15:26:01 +0100 Subject: [PATCH] fix: do not swallow cmd/ctrl+shift+r this is usually hard-refresh on browsers. this keybind is quite handy to bypass cached data, so it would be nice to not swallow it, to bypass tinysub's image/album cache. Signed-off-by: oppiliappan --- src/js/input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/input.js b/src/js/input.js index 427c908..d46899b 100644 --- a/src/js/input.js +++ b/src/js/input.js @@ -421,6 +421,7 @@ function setupKeyboardShortcuts() { case "KeyR": { if (!e.shiftKey) return; // Shift+R for toggle loop + if (e.ctrlKey || e.metaKey) return; // allow Ctrl/Cmd+Shift+R for hard refresh e.preventDefault(); state.loop = !state.loop; ui.loopBtn.classList.toggle(CLASSES.ACTIVE, state.loop); -- 2.51.2