From 5e20b0569eba248ce6988ed3c4ffd7c293f88053 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 23 Feb 2023 22:25:15 +0000 Subject: [PATCH] tweaks --- cmd/review/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/review/main.go b/cmd/review/main.go index 286f9b2..16fd1bc 100644 --- a/cmd/review/main.go +++ b/cmd/review/main.go @@ -152,7 +152,7 @@ func _main() error { if len(signups) == 1 { plural = "" } - count.SetText(fmt.Sprintf("[-:-:b]%d pending signup%s[-:-:-]", len(signups), plural)) + count.SetText(fmt.Sprintf("[-:-:b]%d of %d %s[-:-:-]", signupIx+1, len(signups), plural)) } updateCount() @@ -292,7 +292,7 @@ func _main() error { app.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { currPage, _ := pages.GetFrontPage() - if currPage == "notate" { + if currPage == "notate" || currPage == "review" { return event } switch event.Rune() { @@ -315,6 +315,7 @@ func _main() error { decisionFI.SetCurrentOption(0) pages.SwitchToPage("review") app.SetFocus(cleanEmailInput) + return nil case 'R': if len(signups) == 0 { return nil @@ -322,6 +323,8 @@ func _main() error { providedEmailView.SetText(signups[signupIx].Email) decisionFI.SetCurrentOption(1) pages.SwitchToPage("review") + app.SetFocus(cleanEmailInput) + return nil case 'N': if len(signups) == 0 { return nil