Compare commits

..

3 Commits

Author SHA1 Message Date
CodeDevMLH
a8298461f9 Update manifest.json for release v1.5.0.3 [skip ci] 2026-02-08 00:41:45 +00:00
CodeDevMLH
aa369e5c7b Merge branch 'main' of ssh://git.mahom03-spacecloud.de:44322/CodeDevMLH/jellyfin-plugin-media-bar-enhanced
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 53s
2026-02-08 01:40:53 +01:00
CodeDevMLH
f62dc853be Bump version to 1.5.0.3 and update changelog for mediaBarEnhanced.js and manifest.json; improve keyboard controls in TV mode 2026-02-08 01:40:50 +01:00
3 changed files with 40 additions and 30 deletions

View File

@@ -12,7 +12,7 @@
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> --> <!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
<Title>Jellyfin Media Bar Enhanced Plugin</Title> <Title>Jellyfin Media Bar Enhanced Plugin</Title>
<Authors>CodeDevMLH</Authors> <Authors>CodeDevMLH</Authors>
<Version>1.5.0.2</Version> <Version>1.5.0.3</Version>
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl> <RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
</PropertyGroup> </PropertyGroup>

View File

@@ -2533,7 +2533,6 @@ const SlideshowManager = {
document.addEventListener("keydown", (e) => { document.addEventListener("keydown", (e) => {
const container = document.getElementById("slides-container"); const container = document.getElementById("slides-container");
// Allow interaction if container is visible, even if not strictly focused
if (!container || container.style.display === "none") { if (!container || container.style.display === "none") {
return; return;
} }
@@ -2552,23 +2551,39 @@ const SlideshowManager = {
switch (e.key) { switch (e.key) {
case "ArrowRight": case "ArrowRight":
if (focusElement && focusElement.classList.contains("detail-button")) { SlideshowManager.nextSlide();
focusElement.previousElementSibling.focus();
} else {
SlideshowManager.nextSlide();
}
e.preventDefault(); e.preventDefault();
break; break;
case "ArrowLeft": case "ArrowLeft":
if (focusElement && focusElement.classList.contains("play-button")) { SlideshowManager.prevSlide();
focusElement.nextElementSibling.focus();
} else {
SlideshowManager.prevSlide();
}
e.preventDefault(); e.preventDefault();
break; break;
// case "ArrowDown":
// // Manually shift focus to the content below the slideshow
// const contentBelow = document.querySelector('.homeSectionsContainer');
// if (contentBelow) {
// const focusable = contentBelow.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
// if (focusable) {
// focusable.focus();
// e.preventDefault();
// }
// }
// break;
// case "ArrowUp":
// // Manually shift focus to the header (Search/User)
// const header = document.querySelector('.skinHeader');
// if (header) {
// const focusable = header.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
// if (focusable) {
// focusable.focus();
// e.preventDefault();
// }
// }
// break;
case " ": // Space bar case " ": // Space bar
this.togglePause(); this.togglePause();
e.preventDefault(); e.preventDefault();
@@ -2581,20 +2596,15 @@ const SlideshowManager = {
break; break;
case "Enter": case "Enter":
if (focusElement && focusElement.tagName !== "BODY" && focusElement.id !== "slides-container") { const currentItemId = STATE.slideshow.itemIds[STATE.slideshow.currentSlideIndex];
focusElement.click(); if (currentItemId) {
} else { if (window.Emby && window.Emby.Page) {
// If no specific element is focused (Remote/TV mode default), open details for current item Emby.Page.show(
const currentItemId = STATE.slideshow.itemIds[STATE.slideshow.currentSlideIndex]; `/details?id=${currentItemId}&serverId=${STATE.jellyfinData.serverId}`
if (currentItemId) { );
if (window.Emby && window.Emby.Page) { } else {
Emby.Page.show( window.location.href = `#/details?id=${currentItemId}&serverId=${STATE.jellyfinData.serverId}`;
`/details?id=${currentItemId}&serverId=${STATE.jellyfinData.serverId}` }
);
} else {
window.location.href = `#/details?id=${currentItemId}&serverId=${STATE.jellyfinData.serverId}`;
}
}
} }
e.preventDefault(); e.preventDefault();
break; break;

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
"versions": [ "versions": [
{ {
"version": "1.5.0.2", "version": "1.5.0.3",
"changelog": "- fix: keyboard controls in TV mode \n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from original repo", "changelog": "- fix: keyboard controls in TV mode \n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from original repo",
"targetAbi": "10.11.0.0", "targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.2/Jellyfin.Plugin.MediaBarEnhanced.zip", "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.3/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "e09f14313642dd4bd954c55e8cebcdf1", "checksum": "f5454300163a4d30559d552ef7c4bbd0",
"timestamp": "2026-02-08T00:10:29Z" "timestamp": "2026-02-08T00:41:44Z"
}, },
{ {
"version": "1.3.0.3", "version": "1.3.0.3",