Remember last typed text on scroll in comboboxes

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8287
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Remember last typed text on scroll in comboboxes

Post by *MVV » 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.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37495
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Remember last typed text on scroll in comboboxes

Post by *ghisler(Author) » 2019-04-11, 10:31 UTC

This is standard Windows behaviour. I have only disabled it in the multi-rename tool (name field). But I didn't see this as a big problem in any other dialog boxes...
Author of Total Commander
http://www.ghisler.com

User avatar
MVV
Power Member
Power Member
Posts: 8287
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: Remember last typed text on scroll in comboboxes

Post by *MVV » 2019-04-11, 10:47 UTC

I face it very often, e.g. when I move cursor with Left/Right arrows and accidentally press Up or Down, or, like today, I've accidentally touched mouse wheel while typing text for searching in files.

I know that it is a standard behaviour, but it is quite poor one. And this small fix should improve TC usability at almost no cost. :)

User avatar
Hacker
Moderator
Moderator
Posts: 11249
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Remember last typed text on scroll in comboboxes

Post by *Hacker » 2019-04-11, 12:48 UTC

I don't see any problems with this idea. Support++.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

User avatar
Dalai
Power Member
Power Member
Posts: 6636
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Remember last typed text on scroll in comboboxes

Post by *Dalai » 2019-04-11, 17:40 UTC

I support this idea as well.

But, one thing to keep in mind, and I know I'm being pessimistic again: There will be persons wondering why certain items (the first ones) of the combobox are not saved to the history... probably reporting this as a bug. So, it's a good idea to make the user know about this behavior when implementing it.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

Post Reply