Accept arrow up/down for slide navigation in the presenter view
CI / Deploy / PHP 8.5 (push) Successful in 1m36s
CI / Deploy / PHP 8.4 (push) Successful in 1m37s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Presenter remotes often send ArrowUp/ArrowDown instead of left/right.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-21 11:37:37 +01:00
1 parent cad09163d9
commit bf9f86d24a
3 files changed
+7 -5

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
* Presenter screen. Rendered empty and filled by webroot/js/plenario.js
* (Plenario.presenter) from /admin/{token}/state.
*
* Keyboard: ←/→ slides, P pause/resume (→ resumes too), V voting on/off, H hide results, F fullscreen, Q QR code, T light/dark.
* Keyboard: ←/→ (also ↑/↓ and PageUp/PageDown, as sent by presenter remotes) slides, P pause/resume (→ resumes too), V voting on/off, H hide results, F fullscreen, Q QR code, T light/dark.
* The speaker view (admin:speaker) is this page plus a preview of the next slide, meant for the presenter's own screen.
* Q&A slides: V switches to the next stage; while discussing ←/→ step through the questions first.
*
@@ -66,11 +66,11 @@ $host = preg_replace('#^https?://#', '', $joinBaseUrl);
<span aria-hidden="true">⧉</span><span class="sr-only"><?= __('Referentenansicht öffnen') ?></span>
</a>
<?php endif; ?>
<button type="button" class="ctrl" data-action="prev" aria-keyshortcuts="ArrowLeft PageUp" title="<?= __('Vorherige Folie (←)') ?>">
<button type="button" class="ctrl" data-action="prev" aria-keyshortcuts="ArrowLeft ArrowUp PageUp" title="<?= __('Vorherige Folie (←)') ?>">
<span aria-hidden="true">←</span><span class="sr-only"><?= __('Vorherige Folie') ?></span>
</button>
<span class="ctrl-counter" data-counter>–</span>
<button type="button" class="ctrl" data-action="next" aria-keyshortcuts="ArrowRight PageDown Space" title="<?= __('Nächste Folie (→ oder Leertaste)') ?>">
<button type="button" class="ctrl" data-action="next" aria-keyshortcuts="ArrowRight ArrowDown PageDown Space" title="<?= __('Nächste Folie (→ oder Leertaste)') ?>">
<span aria-hidden="true">→</span><span class="sr-only"><?= __('Nächste Folie') ?></span>
</button>
<button type="button" class="ctrl" data-action="stop" data-pause aria-keyshortcuts="P" title="<?= __('Pause: Teilnehmende sehen eine Pause-Seite (P)') ?>"