Add Magic Remote directional navigation and OK activation

This commit is contained in:
matze19999 committed 2026-10-06 14:01:59 +02:00
1 parent f3a9c0a0d8
commit 3160cf005b
11 files changed
+75 -12

No files matched your search

+2
View File
@@ -26,3 +26,5 @@ call('status',display);setInterval(function(){if(!pending.length)call('status',d
document.getElementById('start').focus();
document.getElementById('autostart').onclick=function(){var button=this;var enabled=button.getAttribute('aria-checked')!=='true';button.disabled=true;call('autostart',function(r){button.disabled=false;if(r.returnValue===false)document.getElementById('error').textContent=r.errorText;else call('status',display);},{enabled:enabled});};
setupRemoteNavigation(['start','stop','refresh','autostart'].map(function(id){return document.getElementById(id);}),document,window);