Add alt+shift variants to keyboard shortcuts in case alt+control conflicts with existing shortcuts.

This commit is contained in:
Storm Dragon
2026-06-07 18:13:28 -04:00
parent 26c7808587
commit d8817f6b2e
3 changed files with 27 additions and 10 deletions
+13
View File
@@ -72,3 +72,16 @@ func TestHallHeadingIncludesCurrentStatus(t *testing.T) {
requireFunctionContains(t, js, "gotUserMessage", "hallRecording = true")
requireFunctionContains(t, js, "gotUserMessage", "hallRecording = false")
}
func TestGlobalShortcutAliasesStayDocumented(t *testing.T) {
js := readStaticFile(t, "skald.js")
requireFunctionContains(t, js, "isGlobalShortcut", "e.altKey && (e.ctrlKey || e.shiftKey)")
requireFunctionContains(t, js, "isGlobalShortcut", "e.key.toLowerCase() === key")
requireContains(t, js, "Control+Alt+H or Alt+Shift+H: Raise or lower hand", "shortcut help")
requireContains(t, js, "Control+Alt+C or Alt+Shift+C: Expand or collapse chat", "shortcut help")
requireContains(t, js, "Control+Alt+T or Alt+Shift+T: Mute or unmute microphone", "shortcut help")
requireContains(t, js, "if(isGlobalShortcut(e, 'h'))", "hand shortcut")
requireContains(t, js, "if(isGlobalShortcut(e, 'c'))", "chat shortcut")
requireContains(t, js, "if(isGlobalShortcut(e, 't'))", "microphone shortcut")
}