Remove the '?' help key from the docs and help: F9 is the help key

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 23:42:07 +02:00
co-authored by Claude Sonnet 5.5
parent 79b440f6f7
commit ff9e59a310
5 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -21,7 +21,7 @@ var helpSections = []helpSection{
{title: "Global", items: []helpItem{
{"F1-F7", "switch view (also from the release and episode lists)"},
{"Tab, Shift+Tab", "switch panel within a view"},
{"F9, ?", "this help. F9 works everywhere; ? only when no text field has the focus (press Esc first in a search box)"},
{"F9", "this help (works everywhere, also while typing)"},
{"q, Ctrl+C", "quit"},
{"Esc", "close a dialog / go back"},
}},
@@ -70,7 +70,7 @@ var helpSections = []helpSection{
{"↑↓, Tab", "move between fields / to the next section"},
{"Space", "toggle a checkbox"},
{"Enter", "press a button: Test connections checks the three services with the values typed in; Save writes the file and applies everything at once; Revert discards edits"},
{"q, ?", "are typed here as text; F9 opens this help"},
{"q", "is typed here as text (it does not quit); F9 opens this help"},
}},
{title: "Log (F7)", note: "Popups fade away by themselves; everything they said is kept here.", items: []helpItem{
{"↑↓, PgUp, PgDn", "scroll"},
@@ -136,12 +136,12 @@ func (a *App) showHelp() {
tv.SetBorderPadding(0, 0, 1, 0)
tv.SetText(text)
tv.SetInputCapture(func(ev *tcell.EventKey) *tcell.EventKey {
if ev.Key() == tcell.KeyEsc || (ev.Key() == tcell.KeyRune && (ev.Rune() == 'q' || ev.Rune() == '?')) {
if ev.Key() == tcell.KeyEsc || (ev.Key() == tcell.KeyRune && ev.Rune() == 'q') {
a.closeModal()
return nil
}
return ev
})
height := min(screenH-2, strings.Count(text, "\n")+2)
a.openModalHints(tv, width, height, "↑↓ PgUp PgDn scroll · Esc, q or ? close")
a.openModalHints(tv, width, height, "↑↓ PgUp PgDn scroll · Esc or q close")
}