Quit with Ctrl+C only; q is an ordinary key everywhere

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
2026-10-21 10:20:18 +02:00
co-authored by Claude Opus 5.5
parent 60fd71bc92
commit 705d795e6d
6 changed files with 18 additions and 37 deletions
+8
View File
@@ -38,3 +38,11 @@ func TestOnlyFunctionKeysSwitchViews(t *testing.T) {
}
}
}
func TestQDoesNotQuit(t *testing.T) {
a := newTestApp(t)
ev := tcell.NewEventKey(tcell.KeyRune, 'q', 0)
if got := a.handleKey(ev); got != ev {
t.Error("q must be passed on as an ordinary key, not taken as quit")
}
}