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:
+3
-4
@@ -22,7 +22,7 @@ var helpSections = []helpSection{
|
||||
{"F1-F7", "switch view (also from the release and episode lists)"},
|
||||
{"Tab, Shift+Tab", "switch panel within a view"},
|
||||
{"F9", "this help (works everywhere, also while typing)"},
|
||||
{"q, Ctrl+C", "quit"},
|
||||
{"Ctrl+C", "quit"},
|
||||
{"Esc", "close a dialog / go back"},
|
||||
}},
|
||||
{title: "Movies and Series", items: []helpItem{
|
||||
@@ -72,7 +72,6 @@ var helpSections = []helpSection{
|
||||
{"Space", "toggle a checkbox; press a button"},
|
||||
{"Test", "(button below the SABnzbd settings) checks the three services with the values typed in"},
|
||||
{"Save, Revert", "(at the bottom) Save writes the file and applies everything at once; Revert discards edits"},
|
||||
{"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"},
|
||||
@@ -138,12 +137,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') {
|
||||
if ev.Key() == tcell.KeyEsc {
|
||||
a.closeModal()
|
||||
return nil
|
||||
}
|
||||
return ev
|
||||
})
|
||||
height := min(screenH-2, strings.Count(text, "\n")+2)
|
||||
a.openModalHints(tv, width, height, "↑↓ PgUp PgDn scroll · Esc or q close")
|
||||
a.openModalHints(tv, width, height, "↑↓ PgUp PgDn scroll · Esc close")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user