Show keyboard shortcuts on presenter controls
Tooltips are useless while presenting, so the controls now show their shortcut as [V], [H], [F] and [Q]; the QR overlay hints at [Esc]. Labels of dynamic buttons live in a [data-label] span so the hint survives updates. Shortcuts are exposed via aria-keyshortcuts and hidden on touch-only devices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
50010484be
commit
0ca36b8ec6
4 files changed
+32
-8
No files matched your search
@@ -571,7 +571,7 @@
|
||||
|
||||
var voting = q('[data-voting]');
|
||||
voting.hidden = !slide.isInteractive;
|
||||
voting.textContent = quizPhase
|
||||
voting.querySelector('[data-label]').textContent = quizPhase
|
||||
? { ready: 'Quiz starten', running: 'Quiz beenden', finished: 'Quiz erneut öffnen' }[quizPhase]
|
||||
: (slide.isVotingOpen ? 'Abstimmung schließen' : 'Abstimmung öffnen');
|
||||
|
||||
@@ -603,7 +603,7 @@
|
||||
function toggleHide() {
|
||||
hideResults = !hideResults;
|
||||
q('[data-results]').classList.toggle('is-hidden', hideResults);
|
||||
q('[data-hide-results]').textContent = hideResults ? 'Ergebnisse zeigen' : 'Ergebnisse verbergen';
|
||||
q('[data-hide-results] [data-label]').textContent = hideResults ? 'Ergebnisse zeigen' : 'Ergebnisse verbergen';
|
||||
}
|
||||
q('[data-hide-results]').addEventListener('click', toggleHide);
|
||||
|
||||
|
||||
Reference in new issue
Block a user