diff --git a/index.html b/index.html
index 6fdacea..a3b1774 100644
--- a/index.html
+++ b/index.html
@@ -88,7 +88,7 @@
Ruh Al Tarikh
-
-
+
Save
diff --git a/js/app.js b/js/app.js
index be07e06..dee4ed7 100644
--- a/js/app.js
+++ b/js/app.js
@@ -525,7 +525,7 @@ function openVideo(video) {
if (icon) {
icon.className = isSaved ? 'fas fa-bookmark' : 'far fa-bookmark';
}
- DOM.modalSaveBtn.setAttribute('aria-label', isSaved ? 'Remove from Watch Later' : 'Save for later');
+ DOM.modalSaveBtn.setAttribute('aria-label', isSaved ? 'Remove from Watch Later (B)' : 'Save for later (B)');
}
}
@@ -585,7 +585,7 @@ function toggleWatchLater(video) {
if (icon) {
icon.className = isSaved ? 'fas fa-bookmark' : 'far fa-bookmark';
}
- DOM.modalSaveBtn.setAttribute('aria-label', isSaved ? 'Remove from Watch Later' : 'Save for later');
+ DOM.modalSaveBtn.setAttribute('aria-label', isSaved ? 'Remove from Watch Later (B)' : 'Save for later (B)');
}
}
@@ -1237,6 +1237,17 @@ function bindEvents() {
if (key === 't') {
toggleTheme();
}
+
+ // Watch Later toggle
+ if (key === 'b') {
+ if (AppState.current) {
+ toggleWatchLater(AppState.current);
+ } else if (DOM.watchLaterPage) {
+ const isVisible = window.getComputedStyle(DOM.watchLaterPage).display !== 'none';
+ if (isVisible) closeWatchLater();
+ else openWatchLater();
+ }
+ }
});
// Mouse move effect for cards