Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3c42e2100 | ||
|
|
20ddbb32c7 | ||
|
|
14a5075e22 | ||
|
|
accb316a81 | ||
|
|
51c5cdf5bf | ||
|
|
306eff757b | ||
|
|
b8f28a5735 | ||
|
|
0932d9611d | ||
|
|
5e616db0ae |
@@ -12,7 +12,7 @@
|
||||
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
|
||||
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
|
||||
<Authors>CodeDevMLH</Authors>
|
||||
<Version>1.5.0.18</Version>
|
||||
<Version>1.5.0.22</Version>
|
||||
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -605,7 +605,10 @@ const SlideUtils = {
|
||||
getOrCreateSlidesContainer() {
|
||||
let container = document.getElementById("slides-container");
|
||||
if (!container) {
|
||||
container = this.createElement("div", { id: "slides-container" });
|
||||
container = this.createElement("div", {
|
||||
id: "slides-container",
|
||||
className: "noautofocus"
|
||||
});
|
||||
document.body.appendChild(container);
|
||||
}
|
||||
return container;
|
||||
@@ -2656,35 +2659,43 @@ const SlideshowManager = {
|
||||
}
|
||||
|
||||
const activeElement = document.activeElement;
|
||||
const isSlideshowFocused = container.contains(activeElement) || activeElement === container;
|
||||
const isTvMode = window.layoutManager && window.layoutManager.tv;
|
||||
const isSlideshowFocused = container.contains(activeElement) || activeElement === container || (!isTvMode && activeElement === document.body);
|
||||
|
||||
if (!isSlideshowFocused) {
|
||||
const isInputElement = activeElement && (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA' || activeElement.isContentEditable);
|
||||
|
||||
if (isInputElement) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (e.key) {
|
||||
case "ArrowRight":
|
||||
if (isTvMode && !isSlideshowFocused) return;
|
||||
SlideshowManager.nextSlide();
|
||||
e.preventDefault();
|
||||
break;
|
||||
|
||||
case "ArrowLeft":
|
||||
if (isTvMode && !isSlideshowFocused) return;
|
||||
SlideshowManager.prevSlide();
|
||||
e.preventDefault();
|
||||
break;
|
||||
|
||||
case " ": // Space bar
|
||||
if (isTvMode && !isSlideshowFocused) return;
|
||||
this.togglePause();
|
||||
e.preventDefault();
|
||||
break;
|
||||
|
||||
case "m": // Mute toggle
|
||||
case "M":
|
||||
if (isTvMode && !isSlideshowFocused) return;
|
||||
this.toggleMute();
|
||||
e.preventDefault();
|
||||
break;
|
||||
|
||||
case "Enter":
|
||||
if (!isSlideshowFocused) return;
|
||||
const currentItemId = STATE.slideshow.itemIds[STATE.slideshow.currentSlideIndex];
|
||||
if (currentItemId) {
|
||||
if (window.Emby && window.Emby.Page) {
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
|
||||
"versions": [
|
||||
{
|
||||
"version": "1.5.0.18",
|
||||
"changelog": "- fix: keyboard controls in TV mode\n- Add sorting options for content\n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from original repo",
|
||||
"version": "1.5.0.22",
|
||||
"changelog": "- fix: Keyboard controls in TV mode\n- Add sorting options for content\n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from original repo",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.18/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "13d18e5d2498f73324d09bf796788e94",
|
||||
"timestamp": "2026-02-09T16:21:41Z"
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.22/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "a9534b9ab12a29759c567ad7b5c7dc6f",
|
||||
"timestamp": "2026-02-09T23:08:40Z"
|
||||
},
|
||||
{
|
||||
"version": "1.3.0.3",
|
||||
|
||||
Reference in New Issue
Block a user