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
@@ -190,6 +190,8 @@ class AdminControllerTest extends TestCase
|
||||
|
||||
$this->get("/admin/$token/present");
|
||||
$this->assertResponseOk();
|
||||
$this->assertResponseContains('aria-keyshortcuts="V"');
|
||||
$this->assertResponseContains('[H]</kbd>');
|
||||
$this->assertSame($first->id, $this->pollsTable()->get($poll->id)->current_slide_id);
|
||||
|
||||
$this->configRequest(['headers' => ['Accept' => 'application/json']]);
|
||||
|
||||
Reference in new issue
Block a user