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

ListComboBox feature list #617

Open
4 tasks
hamen opened this issue Sep 30, 2024 · 1 comment · May be fixed by #627
Open
4 tasks

ListComboBox feature list #617

hamen opened this issue Sep 30, 2024 · 1 comment · May be fixed by #627
Assignees
Labels
consistency Our UI presentation is not consistent with IJ
Milestone

Comments

@hamen
Copy link
Collaborator

hamen commented Sep 30, 2024

  • When the text field is in focus and receiving text, if I open the dropdown I want to still be able to type in the text field. In this scenario, ⬆️⬇️ will cycle through the elements in the dropdown, while ➡️⬅️ will move the caret in the text field.
  • Selecting an element in the dropdown using the ⬆️⬇️ will replace the content of the text field.
  • Typing the exact value of one of the elements in the dropdown and pressing Enter, the element in the list must be selected.
  • Nice to have: popupWidth for the user to specify a custom popup width.
@hamen hamen added the consistency Our UI presentation is not consistent with IJ label Sep 30, 2024
@hamen hamen self-assigned this Sep 30, 2024
@rock3r
Copy link
Collaborator

rock3r commented Sep 30, 2024

As context to this, we're going to move ComboBox's API to two forms:

  1. A bring-your-own-popup-content ComboBox which does none of the things above. The current Dropdown behaviour can be implemented with this, plus a Menu (this requires Split out popup window background from menus #528 and Make Dropdown have generic content popup #529)
  2. A turn-key, works-like-Swing ListComboBox, which takes in a (Selectable)LazyListScope for the dropdown content, handles the list by itself, and provides all the above behaviours that match Swing, out of the box

Note: the first two items in the OP require the popup and its contents not to be focusable, and moving the keyboard events handling to the BTF instead (which will retain focus when the popup opens).

@rock3r rock3r added this to the 0.26.x milestone Sep 30, 2024
@hamen hamen linked a pull request Oct 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consistency Our UI presentation is not consistent with IJ
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants