Remember last typed text on scroll in comboboxes
Posted: 2019-04-11, 06:10 UTC
The problem: when user types something into a combobox and (accidentally) presses Up/Down or scrolls mouse wheel, typed text is completely lost.
This bothers me and other users, and there were even some changes to get rid of it, but only partially - e.g. in MRT Up/Down don't scroll combobox now, only with Ctrl key, and mouse scrolling is disabled. But it is not comfortable, it is not as in other programs, and there are a lot of other comboboxes in TC (e.g. I made this post when lost typed text due to scrolling in Find files dialog)...
I have a simple solution that may be applied to all comboboxes: if there are changes in text since last scrolling, current text should be added to the top of combobox item list (if combobox doesn't contain such string yet), this will allow to return to last typed text if scrolling was unintentional, and won't break anything in other cases. This temporary line shouldn't be saved to history after closing dialog so combobox should remember if it has such line.
This bothers me and other users, and there were even some changes to get rid of it, but only partially - e.g. in MRT Up/Down don't scroll combobox now, only with Ctrl key, and mouse scrolling is disabled. But it is not comfortable, it is not as in other programs, and there are a lot of other comboboxes in TC (e.g. I made this post when lost typed text due to scrolling in Find files dialog)...
I have a simple solution that may be applied to all comboboxes: if there are changes in text since last scrolling, current text should be added to the top of combobox item list (if combobox doesn't contain such string yet), this will allow to return to last typed text if scrolling was unintentional, and won't break anything in other cases. This temporary line shouldn't be saved to history after closing dialog so combobox should remember if it has such line.