Let the presenter resume a paused poll with the pause button
The pause button was hidden while paused, so only the arrow keys could continue. It now toggles between pause and resume (also via P), using an explicit idempotent `resume` control action so double clicks never pause again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6912d045cf
commit
430a18865d
5 files changed
+52
-9
No files matched your search
@@ -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 (→ resumes), V voting on/off, H hide results, F fullscreen, Q QR code, T light/dark.
|
||||
* Keyboard: ←/→ slides, P pause/resume (→ resumes too), V voting on/off, H hide results, F fullscreen, Q QR code, T light/dark.
|
||||
* Q&A slides: V switches to the next stage; while discussing ←/→ step through the questions first.
|
||||
*
|
||||
* @var \App\View\AppView $this
|
||||
@@ -50,8 +50,10 @@ $host = preg_replace('#^https?://#', '', $joinBaseUrl);
|
||||
<button type="button" class="ctrl" data-action="next" aria-keyshortcuts="ArrowRight 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" aria-keyshortcuts="P" title="<?= __('Pause: Teilnehmende sehen eine Pause-Seite (P)') ?>">
|
||||
<span aria-hidden="true">⏸</span><span class="sr-only"><?= __('Pause') ?></span>
|
||||
<button type="button" class="ctrl" data-action="stop" data-pause aria-keyshortcuts="P" title="<?= __('Pause: Teilnehmende sehen eine Pause-Seite (P)') ?>"
|
||||
data-title-pause="<?= h(__('Pause: Teilnehmende sehen eine Pause-Seite (P)')) ?>"
|
||||
data-title-resume="<?= h(__('Fortsetzen: pausierte Folie wieder zeigen (P)')) ?>">
|
||||
<span aria-hidden="true" data-pause-icon>⏸</span><span class="sr-only" data-pause-label><?= __('Pause') ?></span>
|
||||
<kbd class="ctrl__key" aria-hidden="true">[P]</kbd>
|
||||
</button>
|
||||
<button type="button" class="ctrl ctrl--wide" data-action="toggle" data-voting aria-keyshortcuts="V" title="<?= __('Abstimmung öffnen/schließen (V)') ?>">
|
||||
|
||||
Reference in new issue
Block a user