codelayerhq / likvi-timetracking-desktop

The Desktop Time Tracking App for likvi
GNU General Public License v3.0
5 stars 1 forks source link

Prevent the first item in the autocomplete list from being selected automatically. #330

Closed reuank closed 1 year ago

reuank commented 1 year ago

Until now, when updating the description of a time entry, the first item of the autocomplete list is preselected. Pressing ENTER therefore overwrites the text that was entered manually. As the autoselect items take some time to refresh, manually entering e.g. "Documentation" and pressing ENTER might select e.g. "Dashboard changes" from another project, causing confusion.

This change allows for submitting a custom text by pressing ENTER even when autocomplete items are displayed. Selecting and navigating autocomplete items using the arrow keys still works.