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

Autocomplete support for EditBox #218

Open
Kvaz1r opened this issue Sep 8, 2023 · 2 comments
Open

Autocomplete support for EditBox #218

Kvaz1r opened this issue Sep 8, 2023 · 2 comments

Comments

@Kvaz1r
Copy link
Contributor

Kvaz1r commented Sep 8, 2023

Very useful if user should input some value from the predefined set.

@texus
Copy link
Owner

texus commented Sep 8, 2023

How exactly do you expect it to work? Passing the predefined set to EditBox isn't difficult, but the actual autocomplete might be tricky.

  • Should the suggestion(s) appear on a key event (e.g. ctrl+space) or automatically?
  • Should it write the remaining characters next to what you typed (e.g. in grey if the normal text color is black), or should a drop down list appear? If the former, what to do if there are multiple possible values?
  • When should the remaining part of the text be filled in? When the user presses tab or enter?

@Kvaz1r
Copy link
Contributor Author

Kvaz1r commented Sep 8, 2023

  • Should the suggestion(s) appear on a key event (e.g. ctrl+space) or automatically?
  • Should it write the remaining characters next to what you typed (e.g. in grey if the normal text color is black), or should a drop down list appear? If the former, what to do if there are multiple possible values?
  • When should the remaining part of the text be filled in? When the user presses tab or enter?
  1. Automatically though maybe more flexible would be both.
  2. Both, primary suggestion with different color and drop down list for other suggestions if they exists (user can select between them via arrow keys or mouse).
  3. Tab, but maybe enter should do it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants