Cthulhu is no longer a fork. Now it is a screen reader written in Golang.

This commit is contained in:
Storm Dragon committed 2026-10-14 00:16:34 -04:00
1 parent a998fe67de
commit 069fc674dc
708 files changed
+112482 -532

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// Copyright (c) 2026 Storm Dragon
// Authors: Storm Dragon, Angus Kola
// SPDX-License-Identifier: GPL-3.0-or-later
package input
import "testing"
func TestSpeechHistoryBindingsInBothLayouts(t *testing.T) {
for _, layout := range []KeyboardLayout{DesktopKeyboardLayout, LaptopKeyboardLayout} {
for _, bindings := range []CommandBindings{DefaultCommandBindings(layout), BrowseCommandBindings(layout)} {
if got := bindings[CommandChord{Symbol: 'h', Modifiers: controlModifier, CthulhuModifier: true}]; got != ShowSpeechHistory {
t.Fatalf("layout %d history = %q", layout, got)
}
if got := bindings[CommandChord{Symbol: 'd', Modifiers: 1, CthulhuModifier: true}]; got != ToggleSpeechMonitor {
t.Fatalf("layout %d monitor = %q", layout, got)
}
}
}
}