[TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

User avatar
white
Power Member
Power Member
Posts: 4992
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *white »

  • Make sure TC's left and right panel show the contents of different folders on the same drive.
  • Press Alt+F1, or Alt+F2 to open the drive combo box for left or right panel.
  • Press the Windows key.
Both panels now show the same folder.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6627
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *Horst.Epp »

Confirmed
Windows 11 Home x64 Version 23H2 (OS Build 22631.4249)
TC 11.50b1 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.3.3 x64
User avatar
petermad
Power Member
Power Member
Posts: 15273
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *petermad »

Confirmed - tested on Windows 7 - both 32bit and 64bit TC
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1693
Joined: 2011-03-11, 10:11 UTC

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *Usher »

Not confirmed in Windows XP for 32-bit TC. Pressing Win key properly opens Start Menu and passes focus to it.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
white
Power Member
Power Member
Posts: 4992
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *white »

Usher wrote: 2024-09-07, 08:45 UTC Not confirmed in Windows XP for 32-bit TC. Pressing Win key properly opens Start Menu and passes focus to it.
Maybe you misunderstood the bug report. My report doesn't say the Windows Start Menu isn't opened. That does happen. But when that happens, the current folder of one of TC's file panels changes.
User avatar
petermad
Power Member
Power Member
Posts: 15273
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *petermad »

I can confirm the bug under WIndows XP 32bit too - When Alt+F1 is pressed and then the Win key, the left panel is set to the same folder as the right panel - and if Alt+F2 is pressed and then Win, the right panel is is set to the same folder as the left panel.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1693
Joined: 2011-03-11, 10:11 UTC

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *Usher »

It may depend on plugins installed in TC or on Windows taskbar position and size. I have the taskbar on the left side in both Windows XP 32-bit and Windows 7 64-bit and in both cases Start Menu is called properly, with no sude effects in TC.
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 15273
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *petermad »

2Usher
I can reproduce the bug on Window XP 32bit with a fresh wincmd.ini file (no plugins) and with Windows Taskbar on the left side of the screen.

Are you sure you are on the same drive in left and right panel when you test and that the two panels shows different folders before you press the Win key - that is a prerequisite. And again - we are not saying that the Start Menu is not opened, just that it has this side effect in TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48755
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *ghisler(Author) »

Currently TC reacts to the press of a key in the drive combobox by changing to the drive under the cursor. When the drive is the same and you press e.g. Enter on it, TC changes to the path in the other panel. Changing items via cursor keys, pageup/pagedown, and home/end does not close the combobox, but pressing Enter or typing the drive letter/connection number does close the list and change drives. This code was written at a time when the Windows key didn't exist, so it doesn't get any special treatment. I will catch it. I found two other cases where this happens, one which I could fix and one which I could not:
1. Hold down Alt, press and release F1 (combobox opens), then press and release Tab. Can be avoided by checking whether Tab is pressed.
2. Press and release Alt+F1, then press Ctrl+Shift+ESC -> cannot be prevented, ESC is not pressed when I get the notification.
Maybe you can find any others? You don't need to report any involving the Windows key or Tab key (or both), that's already covered.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4992
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *white »

ghisler(Author) wrote: 2024-09-09, 17:08 UTC 1. Hold down Alt, press and release F1 (combobox opens), then press and release Tab. Can be avoided by checking whether Tab is pressed.
2. Press and release Alt+F1, then press Ctrl+Shift+ESC -> cannot be prevented, ESC is not pressed when I get the notification.
Maybe you can find any others? You don't need to report any involving the Windows key or Tab key (or both), that's already covered.
Why not check whether Enter or drive letter/connection number was pressed (optional in combination with Shift) and only change drives when that is the case or when a mouse click was used?

Other problematic keys combos:
  • F1
    Opens help and changes drive.
  • Ctrl+Esc
    Opens Windows Start menu and changes drive.
I am not sure if these double actions should happen:
  • Alt+Enter
    Performs Alt+Enter in file panel and changes drive.
  • Ctrl+L
    Performs Ctrl+L in file panel and changes to drive L: (make sure drive L: exists).
  • Ctrl+P
    Performs Ctrl+P in file panel and changes to drive P: (make sure drive P: exists) .
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48755
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *ghisler(Author) »

Why not check whether Enter or drive letter/connection number was pressed
Because the mouse click and finger tap in touch mode must also be handled. I don't want to break functionality for a rare problem.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4992
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *white »

ghisler(Author) wrote: 2024-09-11, 09:57 UTC Because the mouse click and finger tap in touch mode must also be handled.
Of course.
ghisler(Author) wrote: 2024-09-11, 09:57 UTC I don't want to break functionality for a rare problem.
Is, for example, pressing F1 while the focus is on the drive combo box really such a rare problem?

I understand that this is very old code and there is a risk of introducing bugs, but it seems to be the right way to implement it, rather than implementing exceptions that do not fix all cases.
JOUBE
Power Member
Power Member
Posts: 1551
Joined: 2004-07-08, 08:58 UTC

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *JOUBE »

white wrote: 2024-09-11, 11:37 UTC
ghisler(Author) wrote: 2024-09-11, 09:57 UTC I don't want to break functionality for a rare problem.
... there is a risk of introducing bugs ...
There have been a number of problems in version 11 that are based on changes made at the request of users, and that requests are based on rare problems. (The relevant threats should be known, right? If not, please look for them yourself) These changes are now being removed at great expense...

This is pointless and annoying because side effects occur.

I agree with ghisler(author): don't want to break functionality for a rare problem.

Joube
siealex
Senior Member
Senior Member
Posts: 285
Joined: 2009-03-22, 16:36 UTC

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *siealex »

Confirmed on Windows 11 64-bit, TC 32-bit.
We are not so S.M.A.R.T. as we imagine...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48755
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Pressing Windows key in Change drive combo box changes current folder

Post by *ghisler(Author) »

This should be fixed partially (what I could to) in Total Commander 11.50 beta 1, please check it!
09.09.24 Fixed: Pressing the Windows key in the drive combobox (Alt+F1/Alt+F2) would react like pressing Enter (drive change) (32/64)
Author of Total Commander
https://www.ghisler.com
Post Reply