tabulator
tabulator copied to clipboard
Focus on the first autocomplete option by default
Is your feature request related to a problem? Please describe.
When there is a cell with editor: "list"
and with editorParams: { autocomplete: true }
it feels like the behaviour could be improved. For example, when typing into the autocomplete, if there is only 1 item being displayed and the user presses the enter key, we think it should select that item, rather than the current behaviour of reverting to the cells original value.
Describe the solution you'd like
We would like a new editorParams
option, for example focusFirstItem: boolean
. When enabled it would make the first item be automatically focused, whenever autocomplete is triggered. This would remove the need to always use the up/down arrow keys to select and focus the item before pressing enter.
(Note: It's very faint, but we do have a slight grey css rule styling the focused item, which you can see selects the first item of the list when an autocomplete key is pressed)
Additional context
We have been able to implement the behaviour we desire quite easily with 3 lines, so assume it would be fairly easy to add as a new optional property;