Add alt+shift variants to keyboard shortcuts in case alt+control conflicts with existing shortcuts.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user