You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want a Confirm field automatically go on with the preselection after 5 seconds without user interaction.
Describe the solution you'd like
Add a timeout config to the Run func
If a timeout is set, a countdown starts when Run is called. When it finishes, Run does not block anymore and adds preselections to Values.
As soon as a key is hit while countdown has not finished, count down stops and works as w/o timeout
Hey! Thanks for creating this issue. We do actually need something like this as we recently removed timeout functionality for gum and would love to add it back due to the huh? transition.
Activity
maaslalani commentedon May 25, 2024
Hey! Thanks for creating this issue. We do actually need something like this as we recently removed timeout functionality for
gumand would love to add it back due to thehuh?transition.[-]Go on with preselection after timeout/countdown without user interaction[/-][+]Form Timeouts[/+]Delta456 commentedon Jun 6, 2024
Hi, I am working on this and I would like a complete test case/example of this.
maaslalani commentedon Jun 7, 2024
Hi @Delta456,
We would need to implement something like the following on the form, similar to the other options.
Then, when we
Run()the form, we should pass a context to thetea.Programand cancel that context (usecontext.WithTimeout)Delta456 commentedon Jun 8, 2024
This needs to be closed as it is implemented now.