From 852a1043005f8c7ae24fe796b3023650ffa095b5 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 16 Mar 2023 07:04:32 +0000 Subject: [PATCH] annoying text input things --- cmd/review/main.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/review/main.go b/cmd/review/main.go index 770fecf..eb335b7 100644 --- a/cmd/review/main.go +++ b/cmd/review/main.go @@ -320,8 +320,14 @@ func _main() error { } emailVal := signups[signupIx].Email providedEmailView.SetText(emailVal) - cleanEmailInput.SetPlaceholder( - strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " "))) + /* + TODO the placeholder doesn't appear to become the default text which is + what I wanted it to do. Just taking this out so the blank box beckons + input. Also, it seems like the AcceptanceFunc didn't work since a blank + value got through. + cleanEmailInput.SetPlaceholder( + strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " "))) + */ decisionFI.SetCurrentOption(0) pages.SwitchToPage("review") app.SetFocus(cleanEmailInput)