[8.x-9.x] Every second right click does nothing

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

[8.x-9.x] Every second right click does nothing

Post by *redfox »

1. open a dir with some files in it
2. quickly right click a file with mouse to select it (selection with right click must be enabled in the settings)
3. right click the same file more times - the delay between the repeated right clicks must be low - the bug is not present if you wait more.

Current behavior:

First click selects a file (red color)
Second click does nothing
Third click deselects the file (black color)
Fourth click does nothing
And so on ...

Expected behavior:

Every single right click should switch the selection on/off.

---

Windows 7 32 bit.
Last edited by redfox on 2016-09-30, 20:19 UTC, edited 7 times in total.
User avatar
jslegers
Member
Member
Posts: 129
Joined: 2003-07-17, 08:13 UTC

Post by *jslegers »

Confirmed here with Beta 13 on Windows 10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's actually not a bug - TC receives a "right mouse button double click" event, which it ignores. Some users always double click instead of single clicking, so it's probably a good idea to keep it this way.
Author of Total Commander
https://www.ghisler.com
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

I think that right clicks use mostly professionals, who need to work as quickly as possible. If I click a mouse button, I presume that the appropriate action has been performed. I don't have time to wait about 1 sec to deselect a file again and verify, whether the action eventually failed. You could consider it too geeky, but everyone is different..

If an inexperienced user really uses double clicks for right mouse button actions too, nothing could get wrong - the second click would simply deselect the file again and the user will learn how to use his OS and the mouse a bit better.

Well, please, make a change in the code to not ignore any (repeated) clicks, or make it optional in the settings.
Thank you.
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

An experienced professional with staccato mouse click ambitions should know how to change this:

- <WIN+R> main.cpl
- Tab "Buttons": "Double-click speed"
- "Speed:" move the slider to the right (Fast)

Regards
Holger
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

HolgerK: We are not talking about modifying DblClk speed in Windows at all.
It is about catching right button DblClk events in TC, which is a different thing.
Last edited by redfox on 2016-09-15, 08:31 UTC, edited 1 time in total.
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

What you suggest is a feature request that may prevent future enhancements like configurable double click actions in TC.

There is a reason that windows differs between a single and a double click...

Regards
Holger
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

Holger: The right doubleclick is rarely used in applications. I've been a SW dev for over 25 years, but I never needed to assign a special function to this event. What should it do in TC as a "future enhancement"? Even now, the right click handles 2 different kind of actions ((de)selecting file(folder)/context menu), there is no space for anything else.

Besides, the mouse (double) click latency settings in Windows what you mentioned is the same for both left and right mouse buttons. There is no standard way to set a different value for the left mouse button and another (lower) value for the right one there.

I think that adding it as an optional feature in TC (as I wrote before) would be a good thing for most of all. It requires only a minimal change in the code.

It's up to Mr. Ghisler. Take it or leave it, as usual :wink:
Last edited by redfox on 2016-09-14, 20:59 UTC, edited 1 time in total.
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

redfox wrote:I've been a SW dev for over 25 years ...
Hello youngster ;-)

Just imagine one could configure the right double click for commands like cm_ContextMenu or cm_Reverse (or a new command which would not place the cursor on the next positon)...

Regards
Holger
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

I think we discussed it enough already. Thank you for your comments.

--

Updates:

TC 9.0b14: no fix
TC 9.0b15: no fix
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

TC 9.0b16: no fix
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6979
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

redfox wrote:TC 9.0b16: no fix
Nothing to fix.
It looks like you have to live with this serious error :)
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It is a fact that every frequent second click Windows treats as a doubleclick, and all programs should live with it because Windows works this way.
Anyway, it seems that no one have asked why does redfox need to do such frequent right clicks... I'm using PC for years and have never had any need in such clicking. So I will try to ask...

redfox,
What are you want to achieve with such frequent rightclicking? Which TC function requires such clicking? What is your real usage scenario? Is there any real need in deselecting a file within few milliseconds after selecting it?
redfox
Member
Member
Posts: 101
Joined: 2015-02-09, 11:36 UTC
Location: Czech Republic

Post by *redfox »

MVV: Situation: I right click a nearby file by accident and want to deselect it again and select the correct one instead.

In a program code, it is also simple to handle right doubleclicks as repeated single right clicks.
If TC always reacts to the first right click (selects a file), so it should react to the other one too and not to ignore it.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

redfox wrote:If TC always reacts to the first right click (selects a file), so it should react to the other one too and not to ignore it.

TC do that, if you don't perform that right clicking too fast, read above Christians response:
ghisler(Author) wrote:... TC receives a "right mouse button double click" event, which it ignores.
TC receives, not it detects in his own code.

Just wait for an moment before you do the second click.




 
Post Reply