TGUI icon indicating copy to clipboard operation
TGUI copied to clipboard

Autocomplete support for EditBox

Open Kvaz1r opened this issue 2 years ago • 2 comments
trafficstars

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

Kvaz1r avatar Sep 08 '23 10:09 Kvaz1r

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?

texus avatar Sep 08 '23 17:09 texus

  • 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.

Kvaz1r avatar Sep 08 '23 20:09 Kvaz1r