Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: When prompt text reaches the end of the field, focus is lost and ability to use 'enter/return' to submit is lost #478

Closed
1 task done
nderscore opened this issue Sep 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@nderscore
Copy link
Contributor

nderscore commented Sep 1, 2022

What happened?

#421 introduced a feature to automatically turn on multiline mode after the prompt text wraps.

When this happens, it triggers a fake click This takes focus out of the prompt field when it happens, requiring the user to click (or otherwise re-focus the prompt field) to resume typing.

This also breaks the ability to use the enter/return key to submit prompts

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nderscore nderscore added the bug Something isn't working label Sep 1, 2022
@altryne
Copy link
Contributor

altryne commented Sep 3, 2022

This isn't a bug, but an annoyance.
Gradio replaces the input with a text area.
This is on purpose so that longer prompts won't be hidden by the input.

This also breaks the ability to use the enter/return key to submit prompts

There's a setting for this and it's getting updated, restoring the setting resets that ability

@altryne altryne closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants